I have now found out that the shell commands placed in the command box
of Custom Shortcut Key must be inside single quote marks AND preceded by
this rule also applies to running scripts, e.g.
bash -c 'python ~/my_pythons_scripts/append_clipboard.py'
bash -c 'bash ~/my_scripts_folder/script1.sh'
None of this is explained in any documentations. It should at least be
added as examples of how to assign custom shortcut keys to run commands
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to unity-control-center in Ubuntu.
custom shortcut key ignores commands
Status in unity-control-center package in Ubuntu:
Ubuntu 16.04 LTS. I have tried to run this python script from github:
by defining a custom shortcut key and placing the command:
in the command box. Nothing happens when I use the designated shortcut
The same happens when I try to run a bash script by custom shortcut
Both the python script and my own bash script run from terminal
In fact none of the shell commands placed inside the command box of
custom shortcut keys is executed
Oddly enough there is no problem launching installed programs, such as
skype or firefox.
In other word if your command is, say, firefox then you are ok. But
not when you want to run your own scripts.
Initially I assumed I was not binding the keys properly and posted this
question in Askubuntu:
unsurprisingly I have had no solutions offered.
To manage notifications about this bug go to:
Mailing list: https://launchpad.net/~desktop-packages
Post to : email@example.com
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp