Subject: bug#73859: lightdm-service-type is almost unusable

From: Maxim Cournoyer <[email-masked]>
Date: Wed, 23 Oct 2024 23:48:57 +0900

Hi Dariqq,

Dariqq <[email-masked]> writes:

> Hi Guix,
>
> This is to report some of the issues and workarounds when trying to
> setup lightdm-service-type.

Thank you for taking the time to report these detailed findings!

>
> 1. Unable to choose a session (https://issues.guix.gnu.org/68055)
>
> This appearently never worked: https://issues.guix.gnu.org/57168#0

Indeed.  This definitely makes the session manager much less useful.
I'd really like to find a solution to that; I think the issue is
reported upstream here:
https://github.com/Xubuntu/lightdm-gtk-greeter/issues/105.

Just a hunch: perhaps something in the  environment the greeter
runs is missing to have d-bus communication properly working?

> This means one currently has to specify the default session with
> something like
>
> (service lightdm-service-type
> 	 (lightdm-configuration
> 	  (seats
> 	   (list
> 	    (lightdm-seat-configuration
> 	     (name "*")
> 	     (user-session "xfce"))))))
>

[...]

> This might be fixed by making the lightdm-activiation snippet actually
> useful: It currently searches for a file named "directory" to fix
> permissions rather than the content of the variable 'directory'.
>
> (find-files "directory"  #:directories? #t) vs
> (find-files directory  #:directories? #t)
>
> here
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/lightdm.scm#n527

Fixed.

> 4. tigervnnc
>
> default tigervnc is (file-append tigervnc-server "bin/Xvnc") rather
> than (file-append tigervnc-server "/bin/Xvnc")

Also fixed (see commit e4e1e16bc1).

-- 
Thanks,
Maxim