Bug 424390 - Regression in handling custom shortcut commands
Summary: Regression in handling custom shortcut commands
Status: RESOLVED DUPLICATE of bug 424112
Alias: None
Product: khotkeys
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Jansen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-18 22:11 UTC by Siddhartha
Modified: 2020-07-21 11:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Siddhartha 2020-07-18 22:11:40 UTC
SUMMARY
Custom Shortcuts in Settings are unable to run commands like "kate" or "bash /path/to/script.sh args" no longer work and give an error.

STEPS TO REPRODUCE
1. Create new shortcut in Shortcuts -> Custom Shortcuts -> New -> Global Shortcut -> Command/URL -> "kate"
2. Assign keys such as "Meta + U".
3. Invoke "Meta + U".

OBSERVED RESULT
Error message: "Unable to run the command specified. The file or folder bash kate does not exist."

EXPECTED RESULT
kate is started.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.80 (khotkeys-git r2010.52f4f8d)
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0
Kernel Version: 5.7.9-arch1-1

ADDITIONAL INFORMATION
Reverting commit 1d60f46f from this merge request https://invent.kde.org/plasma/khotkeys/-/merge_requests/1 brings back old behavior. It looks like KRun does not work with raw commands and needs to be updated to handle commands without an explicit schema, possibly here: https://invent.kde.org/frameworks/kio/-/blob/master/src/widgets/krun.cpp#L419
Comment 1 Lamarque V. Souza 2020-07-21 11:57:23 UTC

*** This bug has been marked as a duplicate of bug 424112 ***