guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XWayland, /tmp/.X11-unix


From: Marius Bakke
Subject: Re: XWayland, /tmp/.X11-unix
Date: Mon, 26 Mar 2018 11:33:24 +0200
User-agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu)

Thorsten Wilms <address@hidden> writes:

> On 22.03.2018 14:04, Thorsten Wilms wrote:
>> On 22.03.2018 00:00, Ricardo Wurmus wrote:
>>>
>>> Thorsten Wilms <address@hidden> 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.

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?

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]