From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: XWayland, /tmp/.X11-unix Date: Mon, 26 Mar 2018 11:33:24 +0200 Message-ID: <87k1tzji57.fsf@fastmail.com> References: <87po3xava2.fsf@elephly.net> <0040efaf-92d4-cd6c-e844-1c9161dc7ffa@freenet.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0OVQ-00038r-MZ for guix-devel@gnu.org; Mon, 26 Mar 2018 05:33:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0OVL-00067P-Oh for guix-devel@gnu.org; Mon, 26 Mar 2018 05:33:32 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:52115) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f0OVL-00067A-Ks for guix-devel@gnu.org; Mon, 26 Mar 2018 05:33:27 -0400 In-Reply-To: <0040efaf-92d4-cd6c-e844-1c9161dc7ffa@freenet.de> 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: t_w_@freenet.de, guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thorsten Wilms writes: > 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.=C2=A0 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=20 > 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=20 > service to the operating system, if xorg-server-xwayland (or anything=20 > else that would use that dir) is installed. 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? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlq4vmQACgkQoqBt8qM6 VPqNaQf+Kv63Hx01c/BQY27j9eW7ZreyTKiMiTwSuxbNDqXycdVdL141InkpCz9K 8w5/EraPkFfr9uGqV8A5+3FmNSHW51gMIozQW86fzWrWzEZpVEMji7IJdP1nI1xt A5/VmJW1yUoD/BVyu3ao+dBADQFTZSVsflryUoZKHNgjNd3/D/R43xTtNama9WOP D8uqtpWVN57Kf4Gwl0cNZLTfLQWMqD0aZdpHtDWeC/DalMpOLbzAZcsBXmYocrvB uzWhkMllWad9ZpE9MwninzmVru6L4Bj85+tOakxJVXxIt/O8yHSoLdJ90EmZgO8O 2whoHRUoCbk0NRF6PjXWxP3lSelKrA== =ohHV -----END PGP SIGNATURE----- --=-=-=--