Yes, if the folders and script have no spaces it runs fine with “run in terminal”.
While they are options, I just want to see the raw running progress of the script, instead of complicating it more.
Now I did notice something when I came back and edited the menu item for testing. On my previous screenshots, the script under “Program” was enclosed in single quotes. When I opened KDE Menu Editor to edit it, the single quotes are gone.
After my test with the “filename without space” I changed it back again using the “Open file dialog” button and it correctly puts it in with the single quotes. Then if I close KDE Menu Editor, open it again the Program field no longer has spaces. I thought this might have been a side-effect of having “Run in terminal” checked but this made no difference, when I re-open the editor the single quotes are gone. This is KDE Menu Editor 6.4.4.
Good suggestion. Using the “Open file dialog” button to select the folder location it puts it in the “Work path” field without the single quotes.
After saving it and running it I get the same issue.
I tried enclosing the work path in single quotes but it then throws the error "WorkingDirectory= expects an absolute path or ‘~’”.
After some more testing I had a look at the “Backup OBS.desktop” file and the Exec= line does have the single quotes. I changed these directly in the file to double quotes and it still didn’t work.
[Desktop Entry]
Comment=
Exec=‘/var/home/smerkin/G/Gaming/OBS Backups/Backup OBS Gaming PC Bazzite.sh’
Name=Backup OBS
NoDisplay=false
Path=/var/home/smerkin/G/Gaming/OBS Backups
PrefersNonDefaultGPU=false
StartupNotify=true
Terminal=true
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
My gut feeling is that this is an issue with ptyxis, so I created a test.sh file to perform a couple of basic tests.
#!/bin/bash
ls>test_output.txt
So the script runs fine:
And it creates the file:
Now I rename the file to “test with spaces.sh” and re-run the test. The same issue is occurring here where it’s stopping at the first space:
So I suspect the issue is not with the KDE Menu Editor/Launcher but something to do with ptyxis or how the terminal environment is passing arguments. I’m happy to report this as a bug however I’m not exactly sure where it should be classified under.
Let me know your thoughts and if there is any other testing I could do.