Gnome 3 - custom keyboard shortcut to run command as root?
2
votes
2
answers
3385
views
My keyboard backlight function keys don't seem to work, so I've written a script to change the keyboard brightness, which must be run as root. It is invoked like so...
sudo /usr/bin/local/backlight inc
sudo /usr/bin/local/backlight dec
This works fine from the terminal, but it doesn't work as the command of a custom keyboard shortcut I created via keyboard settings.
Just guessing here, but might the issue be that the command, when invoked via the keyboard shortcut, is not actually running under my user, but as someone else, which wouldn't be in the sudoers file?
Asked by Josiah
(123 rep)
Oct 2, 2014, 06:20 AM
Last activity: Apr 28, 2024, 06:47 AM
Last activity: Apr 28, 2024, 06:47 AM