[PATCH xinit 2/2] startx: Make startx auto display select work with per user /tmp dirs

Ray Strode halfline at gmail.com
Wed Mar 25 06:20:40 PDT 2015


Hi,

> You're right I had forgotten that the xauth file needs to contain the
> displaynr, so there is no easy fix here I'm afraid.
That's not true actually. The xauth file can have a display wildcard, but
the xauth command doesn't support generating xauth files with display
wildcards.

> I think that if we want to fix this we should add a -autodisplayconfig
> config to xinit which takes care of handling both -displayfd and of
> generating and passing in an xauth file.
Yea, exactly!  I would go a step further and just always do what the
-autodisplayconfig line does, implicitly. Of course, if the caller passes
in a -auth line and $DISPLAY, use the ones passed in, but always do
-displayfd no matter what, since -displayfd works fine with a passed
in $DISPLAY and is still useful for getting ready notification without
having to use unix signal handlers.

--Ray


More information about the xorg-devel mailing list