From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Wilms Subject: Re: XWayland, /tmp/.X11-unix Date: Sun, 25 Mar 2018 16:34:17 +0200 Message-ID: <0040efaf-92d4-cd6c-e844-1c9161dc7ffa@freenet.de> References: <87po3xava2.fsf@elephly.net> Reply-To: t_w_@freenet.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f06l7-0004Zb-7b for guix-devel@gnu.org; Sun, 25 Mar 2018 10:36:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f06l0-0002X8-VE for guix-devel@gnu.org; Sun, 25 Mar 2018 10:36:33 -0400 Received: from mout2.freenet.de ([2001:748:100:40::2:4]:38820) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f06l0-0002So-OY for guix-devel@gnu.org; Sun, 25 Mar 2018 10:36:26 -0400 Received: from [195.4.92.141] (helo=mjail1.freenet.de) by mout2.freenet.de with esmtpa (ID t_w_@freenet.de) (port 25) (Exim 4.90_1 #2) id 1f06kv-0003HR-9l for guix-devel@gnu.org; Sun, 25 Mar 2018 16:36:21 +0200 Received: from [::1] (port=54654 helo=mjail1.freenet.de) by mjail1.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1f06kv-0002hT-0W for guix-devel@gnu.org; Sun, 25 Mar 2018 16:36:21 +0200 Received: from mx20.freenet.de ([195.4.92.30]:38360) by mjail1.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1f06ix-0001Xk-Ii for guix-devel@gnu.org; Sun, 25 Mar 2018 16:34:19 +0200 Received: from p200300e4f3eb500002e029fffe32e625.dip0.t-ipconnect.de ([2003:e4:f3eb:5000:2e0:29ff:fe32:e625]:35330) by mx20.freenet.de with esmtpsa (ID t_w_@freenet.de) (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256) (port 465) (Exim 4.90_1 #2) id 1f06iw-0001LV-Ca for guix-devel@gnu.org; Sun, 25 Mar 2018 16:34:19 +0200 In-Reply-To: Content-Language: en-GB 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: guix-devel@gnu.org On 22.03.2018 14:04, Thorsten Wilms wrote: > On 22.03.2018 00:00, Ricardo Wurmus wrote: >> >> Thorsten Wilms writes: >> >>> Initially I thought creation of /tmp/.X11-unix should be tied to the >>> xorg-server-xwayland package, but since it is more generic: which >>> component should create that dir on Guix SD (based on what)? >> >> It is needed at run-time (because packages cannot create files outside >> of their store prefix at build time), so it should be created by a >> system service.  A service is not the same as a shepherd service; we >> also have activation services that run once and only create a file or a >> directory. Revisiting, this wasn't too hard, actually: Using (guix gexp) implied: ; Create /tmp/.X11-unix and make it writeable to, as required by weston-launch with XWayland enabled: (define mkdir-x11-service (simple-service 'mkdir-x11 activation-service-type #~(begin (let ((p "/tmp/.X11-unix")) (mkdir-p p) (chmod p #o777))))) Or perhaps rather: (define mkdir-x11-service (simple-service 'mkdir-x11 activation-service-type #~(begin (use-modules (guix build utils)) (let ((p "/tmp/.X11-unix")) (mkdir-p p) (chmod p #o777))))) I can't find anything that suggests a way to automatically add such a service to the operating system, if xorg-server-xwayland (or anything else that would use that dir) is installed. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/