Hi there,
I have written a script that formats USB drives from a Raspberry Pi, and I have also managed to make it a command and a desktop icon click, all of which I am very proud of. The one bit I am now missing is how to run this using a hot key. Unfortunately something isn't quite right as I can set up the hotkey, but it doesn't really run the script, it does something as the "You haven't ejected your USB stick correctly! Go to Jail" message pops up in the bottom right corner, which inplies to me that it is doing something with the script, as the script does involve ejecting the usb stick at the end of the script. What it should do is open a terminal window and ask a question.
As a result, I think I know where my error is, but don't know where to look to get it right. So, I have edited the file /home/pi/.config/openbox/lsde-pi.xml with the following:
Code:
<keybind key="C-S-f">
<action name="Execute">
<command>formatusb</command>
</action>
</keybind>
I have also changed the command to the full path of the script and the same thing happens. I am suspecting that the error is to do with the action name "Execute" but I can't be sure.
Can anybody shed a little light on this issue please as it is very curious.
Kind regards
iFunc