Summary: | Dolphin can't properly run script if there is space in the path | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Alex Fliker <alex.kdebugzilla> |
Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | a.samirh78, alex.kdebugzilla, kdelibs-bugs, kfm-devel, mo78, nate, tobias.klausmann |
Priority: | NOR | Keywords: | regression |
Version: | 5.71.0 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/kio/commit/8d6b306f585920230acecd19903325f6f0387b8e | Version Fixed In: | 5.72 |
Sentry Crash Report: | |||
Attachments: | possible fix |
Description
Alex Fliker
2020-06-23 21:44:13 UTC
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. *** |