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:

Install Winget on Windows 2022 or Windows 10 LSTC

Install Winget on Windows 2022 or Windows 10 LTSC Install Pre-reqs Install Microsoft.UI.Xaml/2.8.6 Navigate to https://www.nuget.org/pa...