On Do 21 Sep 2023 16:05:51 CEST, Guido Berhoerster wrote:
This is actually a bug in LightDM which makes assumptions about the home
directory not changing and hardcoding paths to the Xauthority file.
There is also a small fix for libpam-mklocaluser necessary so it runs
before the pam_systemd module so that systemd/DBus started processes
have the correct home directory.
Thanks for digging this out!!!
If you want to test, you need to rebuild lightdm with the patch from
https://github.com/canonical/lightdm/pull/323 and change the
libpam-mklocaluser pam-config priority.
I'll need to see how we can escalate this to the lightdm maintainer in
Debian. Unfortunately, neither lightdm upstream nor downstream is really
active with development.