Re: Autorunning a GUI program with root privileges after Gnome login
I have the following setup:
- after boot a non-privileged user logs into Gnome automatically
- then a (GUI) program is being started by "Startup Applications"
A user controls the program via touch-screen, there is no mouse or keyboard. The user sees only the program.
Now I need the autostarting program to run as root.
I have modified the sudoers file to run the program with sudo and without password. THis works all right, but sudo works only in terminal window. But when describing startup applications it is not possible to specify that the program should be run in terminal window. And sudo is not working in this setup, it gives an error message that it needs tty.
The Command field in "Startup application" setup is "sudo /usr/bin/gui_prog_name".