Author: Rainer Weikusat Date: To: dng Subject: Re: [DNG] Can't open display, except from ICEWM launcher
Walter Dnes <waltdnes@???> writes: > This is *NOT* remote X; everything is local. My X display, under
> ICEWM, crashed to text console mode a few days ago. I restarted X.
[...]
> =====================================================
>
> [dev2][waltdnes][~/tv] echo ${DISPLAY}
> :0
> [dev2][waltdnes][~/tv] xhost
> xhost: unable to open display ":0"
> [dev2][waltdnes][~/tv] xhost +
> xhost: unable to open display ":0"
>
> =====================================================
>
> What the bleep?!?!?
Some bleep that might be helpful: That's the error message which gets
printed when it wasn't possible to connect to an X server on any socket
one was expected to be found. Assuming the current display number is n,
the following socket addresses will be tried:
@"/tmp/.X11-unix/Xn"
/tmp/.X11-unix/Xn
TCP 127.0.0.1 port 600n
TCP6 ::1 port 600n
The first is a socket in the abstact namespace for AF_UNIX sockets which
exists on Linux. It's possible to observe this with strace:
[attempt to connect to a display :1 which didn't exist]
My guess for the cause would be (can't test this without killing my X
session) that the crash caused the /tmp/.X11-unix/X0 socket to be left
behind in the filesystem and that the next instance of the X server
which got started thus chose the display number :1.