#1023982 greetd should use alternatives system to manage display-manager.service alias

Package:
greetd
Source:
greetd
Description:
minimal Wayland login manager
Submitter:
Taavi Väänänen
Date:
2023-07-26 08:12:05 UTC
Severity:
normal
Tags:
#1023982#5
Date:
2022-11-13 13:58:00 UTC
From:
To:
greetd service specifies an alias (display-manager.service). That alias
should instead be managed via the alternatives system that other
display manager packages are using to make it possible to switch
between installed display managers.

#1023982#10
Date:
2022-11-14 16:21:00 UTC
From:
To:
Quack,

That would be nice indeed.

I looked at lightdm and gdm3 for example and I don't get how that's
supposed to work. lightdm brings a service file with the same Alias.
Both manage the /etc/systemd/system/display-manager.service symlink in
their postinst, similarly, but lightdm does not handle all possible
errors. None manages it using the alternative system
(debian/gdm3.alternatives is about PAM options).

So I think before doing any change we need to have all these packages
agree on some configuration and snippet to do that properly, and
documented.

Regards.
\_o<

#1023982#17
Date:
2023-07-25 13:56:57 UTC
From:
To:
I looked at /etc/alternatives/x-window-manager which points in my case to
/usr/bin/kwin_x11 and looked at the source on Salsa:
https://salsa.debian.org/qt-kde-team/kde/kwin/-/tree/master/debian has f.e.
kwin-x11.postinst which could provide some clues.

If you contact the the Debian Qt/KDE Team, they could probably help further.
I think that in any case contacting the relevant teams would be needed and/or
useful.