https://bugs.kde.org/show_bug.cgi?id=514400
Bug ID: 514400
Summary: Keyboard shortcut for script doesn't work without file
extension, and shows no errors or notifications
Classification: Applications
Product: systemsettings
Version First unspecified
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
For keyboard shortcuts, `/home/user/Assets/Scripts/ww-run-raise/ww -f
"zen-beta" -c "zen" -p "zen "` doesn't work nor shows any error messages /
notifications. The command works in bash. I asked for help in multiple places
and no one figured it out: the script must have a file extension like `.sh` to
work: `/home/user/Assets/Scripts/ww-run-raise/ww.sh`.
STEPS TO REPRODUCE
1. Download [ww-run-raise](https://github.com/academo/ww-run-raise).
2. Create a shortcut in Settings > Keyboard > Shortcuts, with the following for
`command`: `/home/user/Assets/Scripts/ww-run-raise/ww -f "zen-beta" -c "zen" -p
"zen "` *(without using the choose file button)*
3. Assign a keyboard shortcut.
OBSERVED RESULT
Nothing happens, no error messages or notifications when doing all the steps
above, but the command doesn't work.
EXPECTED RESULT
I think one of the following should happen:
1. The command should work if it calls a valid shell script (with a shebang in
it), even if there's no file extension.
2. KDE shows an error somewhere if the command is not valid, maybe a message in
the "Edit Command" box after entering in the command, or a notification.
Right now if the file has an extension but the path is invalid, I get an error
notification like so: `Could not find the program
'/home/user/Assets/Scripts/ww-run-raise/wwdd.sh' `
SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma:
KDE Plasma Version:
KDE Frameworks Version:
Qt Version:
Operating System: NixOS 26.05
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
--
You are receiving this mail because:
You are watching all bug changes.