all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Marius Bakke <mbakke@fastmail.com>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: XWayland, /tmp/.X11-unix
Date: Mon, 26 Mar 2018 14:44:36 +0200	[thread overview]
Message-ID: <87in9jf1l7.fsf@gnu.org> (raw)
In-Reply-To: <87efk7jda5.fsf@fastmail.com> (Marius Bakke's message of "Mon, 26 Mar 2018 13:18:26 +0200")

Hello!

Marius Bakke <mbakke@fastmail.com> skribis:

> Thorsten Wilms <t_w_@freenet.de> writes:
>
>> On 26.03.2018 11:33, Marius Bakke wrote:
>>> It could be done with a "profile hook" in (guix profiles).  Although for
>>> the common case I suppose this will be done by a display manager?
>>
>> But then all X11-supporting display managers would have to care about it.
>>
>> According to answers in
>> https://unix.stackexchange.com/questions/196677/what-is-tmp-x11-unix
>> /tmp/.X11-unix/ is the directory where any X11 server will create the 
>> unix domain socket X0.
>>
>> One answer implies that is not necessarily the only way an X11 server 
>> may communicate with clients on the same machine.
>>
>> `/gnu/store: grep -iRs X11-unix` only showed results caused by my own 
>> simple-service, matches in binary files and a comment in a 
>> slim-sigusr1.patch:
>> "The problem was that SLiM doesn't pay attention to SIGUSR1.  So in 
>> practice, if X starts slowly, then SLiM gets ECONNREFUSED a couple of 
>> time on /tmp/.X11-unix/X0, then goes on trying to connect to 
>> localhost:6000, where nobody answers; eventually, it times out and tries 
>> again on /tmp/.X11-unix/X0, and finally it shows up on the screen."
>>
>> I would think that something must already take care of /tmp/.X11-unix/ 
>> for an operating-system configuration using plain X11?
>
> Interesting.  I assumed SLiM created it, but could not find it with
> 'grep'.  Maybe libx11?

‘_xcb_open_unix’, called by ‘_xcb_open’ in libxcb, creates /tmp/.X11-unix.

Ideally Wayland’s client library would create it as well if it needs it?

> In any case it should be safe to add an activation script that creates
> /tmp/.X11-unix on GuixSD.  I think it can be part of %desktop-services,
> or maybe even %base-services.

Sounds like a good idea.

Ludo’.

  reply	other threads:[~2018-03-26 12:44 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-21 19:57 XWayland, /tmp/.X11-unix Thorsten Wilms
2018-03-21 23:00 ` Ricardo Wurmus
2018-03-22 13:04   ` Thorsten Wilms
2018-03-25 14:34     ` Thorsten Wilms
2018-03-26  9:33       ` Marius Bakke
2018-03-26 10:45         ` Thorsten Wilms
2018-03-26 11:18           ` Marius Bakke
2018-03-26 12:44             ` Ludovic Courtès [this message]
2018-03-26 20:23             ` Thorsten Wilms
2018-03-29 15:18             ` Thorsten Wilms
2018-03-29 17:02               ` Marius Bakke
2018-03-29 19:57                 ` Thorsten Wilms
2018-03-29  6:18     ` Chris Marusich
2018-03-29 14:37       ` Thorsten Wilms
2018-03-30  4:34         ` Chris Marusich
2018-03-30 16:25           ` Services, was: " Thorsten Wilms

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87in9jf1l7.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=mbakke@fastmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.