You are not logged in.
Pages: 1
When I try to execute any X app as root (for example kwrite to edit some config files) I get an error:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
kwrite: cannot connect to X server :0
I'm quite sure it's something about xorg.conf, but I can't find it. Any ideas?
Offline
run xhost in a terminal:
xhost +localhost
su
myxapp
You can put the xhost line in your ~/.bashrc if you want it to be run every time. Bear in mind its better not to run gui apps as root, however.
Dusty
Offline
run xhost in a terminal:
xhost +localhost su myxapp
Actually you want to use "xhost +local:" instead of "xhost +localhost" else you'll have to set the DISPLAY variable to use the loopback IP address.
Offline
Pages: 1