Kdialog cannot save file


#!/bin/bash

filename=$(kdialog --getsavefilename "Save File")

kdialog --msgbox "file saved as $filename"

For some reason I simply CANNOT save a file. when i run the above script i get:

kf.config.core: "KConfigIni: In file /home/yikes/Desktop/yesno.desktop, line 1:" Invalid entry (missing '=')

I tried saving to a different folder . but this time i got no error yet the file didn't save

The error message you’re seeing:

kf.config.core: "KConfigIni: In file ... Invalid entry (missing '=')

is related to an issue with KDE configuration files, not directly with your script.

oh!! ok neo, thanks for your help. I'll do a bit of research.

Shell scripting with KDE dialogs | Developer
suggests

kdialog --getsavefilename