JWMDesktop bash as action not working

Moderators: 666philb, Forum moderators

Post Reply
jlocatell
Posts: 8
Joined: Sun May 23, 2021 6:02 pm
Has thanked: 2 times

JWMDesktop bash as action not working

Post by jlocatell »

Added a sh file as an hotkey action does not run. /root/captura.sh has exec privilegies.

Any ideas?

thanks in advance

J

Attachments
captura.jpg
captura.jpg (33.44 KiB) Viewed 225 times
captura.jpg
captura.jpg (17.33 KiB) Viewed 225 times
HerrBert
Posts: 339
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 17 times
Been thanked: 113 times

Re: JWMDesktop bash as action not working

Post by HerrBert »

JWM shortcut action needs exec: as prefix for starting your script
Try exec:/root/captura.sh for action in JWM keyboard shortcuts

jlocatell
Posts: 8
Joined: Sun May 23, 2021 6:02 pm
Has thanked: 2 times

Re: JWMDesktop bash as action not working

Post by jlocatell »

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?

captura.jpg
captura.jpg (24.62 KiB) Viewed 163 times
perdido

Re: JWMDesktop bash as action not working

Post by perdido »

jlocatell wrote: Fri May 28, 2021 2:27 am

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?

Make sure to leave a space between exec: and /root/captura.sh

try

Code: Select all

exec: /root/captura.sh

.

jlocatell
Posts: 8
Joined: Sun May 23, 2021 6:02 pm
Has thanked: 2 times

Re: JWMDesktop bash as action not working

Post by jlocatell »

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?

jlocatell
Posts: 8
Joined: Sun May 23, 2021 6:02 pm
Has thanked: 2 times

Re: JWMDesktop bash as action not working

Post by jlocatell »

Found a workaround, added an sleep 0.2 before the scrot command.

source
https://stackoverflow.com/questions/355 ... 1#35503871

Post Reply

Return to “Fossapup64”