From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: XWayland, /tmp/.X11-unix Date: Mon, 26 Mar 2018 14:44:36 +0200 Message-ID: <87in9jf1l7.fsf@gnu.org> References: <87po3xava2.fsf@elephly.net> <0040efaf-92d4-cd6c-e844-1c9161dc7ffa@freenet.de> <87k1tzji57.fsf@fastmail.com> <9e72a608-299f-217a-6447-b9b843774d22@freenet.de> <87efk7jda5.fsf@fastmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0RUT-0004Kk-Id for guix-devel@gnu.org; Mon, 26 Mar 2018 08:44:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0RUO-0007fK-O7 for guix-devel@gnu.org; Mon, 26 Mar 2018 08:44:45 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:44854) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f0RUO-0007em-Hw for guix-devel@gnu.org; Mon, 26 Mar 2018 08:44:40 -0400 In-Reply-To: <87efk7jda5.fsf@fastmail.com> (Marius Bakke's message of "Mon, 26 Mar 2018 13:18:26 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Marius Bakke Cc: Guix-devel Hello! Marius Bakke skribis: > Thorsten Wilms 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=20 >> unix domain socket X0. >> >> One answer implies that is not necessarily the only way an X11 server=20 >> may communicate with clients on the same machine. >> >> `/gnu/store: grep -iRs X11-unix` only showed results caused by my own=20 >> simple-service, matches in binary files and a comment in a=20 >> slim-sigusr1.patch: >> "The problem was that SLiM doesn't pay attention to SIGUSR1. So in=20 >> practice, if X starts slowly, then SLiM gets ECONNREFUSED a couple of=20 >> time on /tmp/.X11-unix/X0, then goes on trying to connect to=20 >> localhost:6000, where nobody answers; eventually, it times out and tries= =20 >> 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/=20 >> for an operating-system configuration using plain X11? > > Interesting. I assumed SLiM created it, but could not find it with > 'grep'. Maybe libx11? =E2=80=98_xcb_open_unix=E2=80=99, called by =E2=80=98_xcb_open=E2=80=99 in = libxcb, creates /tmp/.X11-unix. Ideally Wayland=E2=80=99s client library would create it as well if it need= s 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=E2=80=99.