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

From: Mathieu Othacehe <[email-masked]>
Date: Fri, 01 Oct 2021 07:37:47 +0000

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