Added a sh file as an hotkey action does not run. /root/captura.sh has exec privilegies.
Any ideas?
thanks in advance
J
Moderators: 666philb, Forum moderators
Added a sh file as an hotkey action does not run. /root/captura.sh has exec privilegies.
Any ideas?
thanks in advance
J
Well as adding exec: is not working either, I've added a shortcut to the icon at the desktop. When I type the shortcut the icon gets a white rectangle but nothing happens: if I click on the icon the sh file is triggered.
Some other ideas?
jlocatell wrote: Fri May 28, 2021 2:27 amWell as adding exec: is not working either, I've added a shortcut to the icon at the desktop. When I type the shortcut the icon gets a white rectangle but nothing happens: if I click on the icon the sh file is triggered.
Some other ideas?
Make sure to leave a space between exec: and /root/captura.sh
try
Code: Select all
exec: /root/captura.sh
.
crazy things. if the desktop icon points to this bash, shortcut runs ok
#!/bin/sh
exec geany "$@"
If the icon is pointed to that other file, shortcut does not work anymore.
#!/bin/sh
exec scrot -s -o 'captura.jpg'
exec xclip -selection clipboard -t image/png < "captura.jpg"
Again if I click on the icon the second bash file runs ok.
Cant see the difference between clicking on the icon and run a shorcut.
Ideas?
Found a workaround, added an sleep 0.2 before the scrot command.
source
https://stackoverflow.com/questions/355 ... 1#35503871