STEPS TO REPRODUCE 1. Have a path like '/storage/Programs/Astronomy/ISS Transit Predictor' 2. Launch a script in this directory by choosing Execute when prompted OBSERVED RESULT Nothing happens. Clue is given by running Dolphin in terminal: '/bin/sh: 1: /storage/Programs/Astronomy/ISS: not found' EXPECTED RESULT Properly handling the path containing the space and executing the script SOFTWARE/OS VERSIONS Operating System: KDE neon 5.19 KDE Plasma Version: 5.19.1 KDE Frameworks Version: 5.71.0 Qt Version: 5.14.2 Kernel Version: 5.4.0-38-generic OS Type: 64-bit
I can confirm this behavior and noting that this worked in previous releases, so its most likely a recent regression /Wine/Program Files/test.sh -> /bin/sh: /Wine/Program: Datei oder Verzeichnis nicht gefunden SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed KDE Plasma Version: 5.19.1 KDE Frameworks Version: 5.71.0 Qt Version: 5.15.0
Created attachment 129642 [details] possible fix While debugging i found this to involve several components (Dolphin, kio, kcoreaddons), yet the seemingly easiest solution seems to be in kios CommandLauncherJob. A diff to fix the described regression is attached (I know this is not the way to upstream patches, yet i wanted it to discuss first)
Nice. Looks like a sensible fix to me. BTW submitting directly is often the best way to have that discussion, so please submit it over here: https://invent.kde.org/frameworks/kio/-/merge_requests/ In your commit message, you can add `Bug: 423412` on its own line and it will automatically close this when merged.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/69
Git commit 8d6b306f585920230acecd19903325f6f0387b8e by Ahmad Samir, on behalf of David Faure. Committed on 29/06/2020 at 09:58. Pushed by ahmadsamir into branch 'master'. OpenUrlJob: fix support for shell scripts with a space in the filename When executing a shell script or an executable in dolphin in a folder with a blank e.g. "/my test/test.sh" the path was truncated to "/my" and the command was not executed. Document the API trap. Related: bug 423645 FIXED-IN: 5.72 M +2 -0 src/gui/commandlauncherjob.h M +1 -1 src/gui/openurljob.cpp https://invent.kde.org/frameworks/kio/commit/8d6b306f585920230acecd19903325f6f0387b8e
*** Bug 423701 has been marked as a duplicate of this bug. ***
*** Bug 423578 has been marked as a duplicate of this bug. ***