I have a camera application which I am trying to run under sudo: but I am receiving this error
cannot connect to x server
the issue is when I dont use sudo, the program opens fine. However, there are certain parts of this application which still need admin privileges.
Since it is a GUI application, I tried to use gksudo then it opens a window asking about the password, but after entering the password the application returns and GUI does not open!
I have tried also
sudo xhost local:root
and got:
xhost: unable to open display""
I am using lubuntu 14.04