Bug 430346 - Custom script as shortcut is not run
Summary: Custom script as shortcut is not run
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-13 17:32 UTC by lesto
Modified: 2024-05-06 18:15 UTC (History)
3 users (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 lesto 2020-12-13 17:32:36 UTC
SUMMARY
I created a small bash script that mute/unmute my microphone (btw that would be nice to have as default action in kmix).  
The script has execution permission and if i double click it, it runs.  
But if I add the script as shortcut it does not run.  
Also there is no documentation on how some application/script are able to register multiple shortcut withing one executable.
I also tried a smaller script that is only echoing on file on /tmp, and still nothing happen. tried also to reboot

STEPS TO REPRODUCE
1. create a bash script
2. make it executable
3. assign it to a global shortcut
4. try to use the shortcut

OBSERVED RESULT
nothing happen, even after rebooting the system. Other "standard" shortcut, even added later like Firefox to open a new windows, works fine

EXPECTED RESULT
the script would be run
Comment 1 apache 2023-10-12 06:49:04 UTC
I confirm that script that works in terminal, doesn't work when invoked by shortcut added in settings.
Script file it is located:
/home/user_name/script
it starts with #!/bin/sh
I gave it execute privileges.
I went to settings → shortcuts → own shortcuts → new → global → command or url.
I chose shortcut and as action: /home/user_name/./script
When shortcut is pressed nothing happens. 

Operating System: Manjaro Linux 
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.5.5-1-MANJARO (64-bit)
Graphics Platform: X11
Comment 2 Christoph Cullmann 2024-05-06 18:15:39 UTC
This seems to be not bindings related.