Monday, December 18, 2006

xlib: connection to "unix:1012.0" refused by server - workaround

I was trying to open an X application (actually a GTK+ application) and got the error below :
Xlib: connection to "unix:1012.0" refused by server
Xlib: No protocol specified


(scite:8344): Gtk-WARNING **: cannot open display:
I think the reason why I am getting this error is that I changed user in terminal from regular account to root. I've read in the net that user can use xhost + but it is not working for nxserver+nxclient. But there is a very easy workaround for this if sudo is installed and enabled.
#: sudo scite
This will open the scite text editor in an elevated account (root user).

No comments: