Skip to main content

Thread: Run a graphical program as a different user


hi:

i'm trying run gedit different user in order create configuration files. used following command:

code:
sudo -u www-data gedit syntax.php
but following error message:

code:
no protocol specified    (gedit:5152): gtk-warning **: cannot open display: :0.0
i can run terminal programs fine using above command. value of $display ":0.0", believe correct. issuing command "xhost +" (to turn off authentication) didn't help.

cheers,
lk

try using gksudo, may set display variables application you're trying start.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Run a graphical program as a different user


Ubuntu

Comments