Bug 514400

Summary: Keyboard shortcut for script doesn't work without file extension, and shows no errors or notifications
Product: [Frameworks and Libraries] frameworks-kglobalaccel Reporter: kde.slip812
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: fanzhuyifan, nate
Priority: NOR Keywords: usability
Version First Reported In: 6.21.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description kde.slip812 2026-01-10 02:28:34 UTC
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