all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: t_w_@freenet.de, guix-devel@gnu.org
Subject: Re: XWayland, /tmp/.X11-unix
Date: Mon, 26 Mar 2018 11:33:24 +0200	[thread overview]
Message-ID: <87k1tzji57.fsf@fastmail.com> (raw)
In-Reply-To: <0040efaf-92d4-cd6c-e844-1c9161dc7ffa@freenet.de>

[-- Attachment #1: Type: text/plain, Size: 1893 bytes --]

Thorsten Wilms <t_w_@freenet.de> writes:

> On 22.03.2018 14:04, Thorsten Wilms wrote:
>> On 22.03.2018 00:00, Ricardo Wurmus wrote:
>>>
>>> Thorsten Wilms <t_w_@freenet.de> 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2018-03-26  9:33 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 [this message]
2018-03-26 10:45         ` Thorsten Wilms
2018-03-26 11:18           ` Marius Bakke
2018-03-26 12:44             ` Ludovic Courtès
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=87k1tzji57.fsf@fastmail.com \
    --to=mbakke@fastmail.com \
    --cc=guix-devel@gnu.org \
    --cc=t_w_@freenet.de \
    /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.