https://bugs.kde.org/show_bug.cgi?id=424390

            Bug ID: 424390
           Summary: Regression in handling custom shortcut commands
           Product: khotkeys
           Version: unspecified
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: k...@michael-jansen.biz
          Reporter: k...@sdht.in
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to