Page 1 of 1

create shortcut for script in kde [solved]

Posted: 2022-09-18 12:33
by peer
I am trying to create a shorcut in kde for the following script: "/home/peer/Scripts/Huion/changeprofile.sh".
It is running ok in the terminal

I created a laucher in the menu and I can run the script from there also.

I tried to create a shortcut (Ctrl-Shift-F12) in the launcher but the shortcut does not do anything.
In the launcher I tried several commands:

Code: Select all

/home/peer/Scripts/Huion/changeprofile.sh
sh /home/peer/Scripts/Huion/changeprofile.sh
/usr/bin//home/peer/Scripts/Huion/changeprofile.sh
When I add a shortcut to a program in the menu it just works. When I try to add a shortcut to a script or a java program it does not work. So I think I am missing something.

edit:
I tried it another way. In settings-workspace-shortcuts I added a custom shortcut and from there it just works.
customm -> new -> global shortcut -> URL/Command...