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

Ray Strode halfline at gmail.com
Fri Mar 20 10:16:40 PDT 2015


Hi,

On Fri, Mar 20, 2015 at 10:02 AM, Hans de Goede <hdegoede at redhat.com> wrote:
> If a separate /tmp per user is used the existing auto display select code
> does not work, add an extra check for the unix socket for the display number
> existing in /proc/net/unix (linux only).

This patch and the previous patch make sense to me near term.  It
fixes some corner
cases without regressing any others.  I do think a better medium-term
solution would
be for xinit to start using -displayfd and startx to drop its "try to
figure out a display
number" heuristics.  There's just no reason programs that start an X
server should be
trawling around in /tmp and/or binding to sockets up front (except for
hysterical raisins)

--Ray


More information about the xorg-devel mailing list