For some reason, I have to execute xhost +SI:localuser:root
to allow GUI for root
user. I have put this command in a shell script, which will be executed at startup by upstart
. When I execute this command or this script manually as a another user it works fine. But when this script executed by upstart
this command doesn't works.
I also tried by executing this command as other than root
user in script as
sudo -H -s otheruser xhost +SI:localuser:root
This also doesn't works.
How can I allow GUI to root
user at system startup?
Thanks for your time!