guix-patches
[Top][All Lists]
Advanced

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

[bug#50563] [PATCH [0/2] gnu: GDM: Add Wayland support


From: Mathieu Othacehe
Subject: [bug#50563] [PATCH [0/2] gnu: GDM: Add Wayland support
Date: Fri, 01 Oct 2021 07:37:47 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Hello,

> +;; Wrapper script for Wayland sessions, similar to Xsession.
> +;; Used to setup the environment.
> +(define gdm-wayland-session-wrapper
> +  (program-file
> +   "gdm-wayland-session-wrapper"
> +   #~((let* ((user (getpw (getuid)))
> +         (name (passwd:name user))
> +         (shell (passwd:shell user))
> +         (args (cdr (command-line))))
> +        (if (string=? name "gdm")
> +         (apply execl (cons (car args) args))
> +         (execl shell shell "--login" "-c" (string-join args)))))))

I'm not sure to get perfectly the role of this wrapper, could you
please clarify it?

It looks like nix is dealing differently with the session starting,
without using a dedicated script:

https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/gnome/core/gdm/fix-paths.patch

Thanks,

Mathieu





reply via email to

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