#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:
2026-07-22 11:05:02 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.

#1023982#26
Date:
2026-07-22 11:04:23 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
greetd, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1023982@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Marc Dequènes (Duck) <Duck@DuckCorp.org> (supplier of updated greetd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 22 Jul 2026 19:48:46 +0900
Source: greetd
Architecture: source
Version: 0.10.3-6
Distribution: unstable
Urgency: medium
Maintainer: Marc Dequènes (Duck) <Duck@DuckCorp.org>
Changed-By: Marc Dequènes (Duck) <Duck@DuckCorp.org>
Closes: 1023982 1137070 1137075 1140127
Changes:
 greetd (0.10.3-6) unstable; urgency=medium
 .
   [ Andrew Bower ]
   * Identify service as providing -display-manager sysvinit facility.
 .
   [ Luca Boccassi ]
   + Stop deleting system user and group on purge (for security reasons).
   * Install and use sysusers.d/tmpfiles.d config files
 .
   [ Marc Dequènes (Duck) ]
   * Update PAM configuration to include common-* instead of login
     (Closes: #1140127).
   * Support display-manager selection for systemd and sysinit systems
     (Closes: #1023982, #1137075).
   * Do not stop on upgrade or start after install for sysinit too
     (Closes: #1137070).
   * Add status action to the init script.
   * Convert watch file to uscan format v5 (deb822).
   * Bump Standards-Version to 4.7.4 (no changes).
Checksums-Sha1:
 7c6b0215fb99cd537a6e59c340392cfe0384ab54 2230 greetd_0.10.3-6.dsc
 948533967b888dd9fc293526e20d7d58c551f22c 27300 greetd_0.10.3-6.debian.tar.xz
 9868092023ac9a990ee87e62bc27e8f663d14213 15318 greetd_0.10.3-6_amd64.buildinfo
Checksums-Sha256:
 bc3594c117dea95f3bf088da29091eea07aae19cdecf8daebee249c9ef8b7864 2230 greetd_0.10.3-6.dsc
 8d2c7e922e71634a66b40d625f3f9a326b56cd304fb1733323d99434febadbd1 27300 greetd_0.10.3-6.debian.tar.xz
 86874b7d6f359a740b088ccf3f114ca2ca63c135019024b76bd8d31f35b2f243 15318 greetd_0.10.3-6_amd64.buildinfo
Files:
 cd32d35bf3120fd7e7194b21796906f2 2230 misc optional greetd_0.10.3-6.dsc
 8261f3e7e88c13f6b75b68403908c6fb 27300 misc optional greetd_0.10.3-6.debian.tar.xz
 ed996c014be883e05f8b1083ada437e4 15318 misc optional greetd_0.10.3-6_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEcpcqg+UmRT3yiF+BVen596wcRD8FAmpgoJ4ACgkQVen596wc
RD8jSA/+NHHL8Lp+UR21HBsv/bJaB/1Hx55ot4K025ZaDnnF1UAytzqzUZ+G2Uss
s0wR919wFBoJ8JBkz8iaAiL3/aP19aAofg2neM7j2ZKv0Aw8M/+VZhD0hRtkV+bW
lpJFHx7QkGBiIHvy9BzFweGRPGpmb0xi8hlClDfmGzStZ8j+8dL0LCrA4g7LfSlp
CUUDT5Y6RWIwy+EFsuzfyEP9iUgOVE+YOu7dAZ1BcHfGym0AgtwuDzuNK5yCUW6Q
QBMGSChV87QmbLHimu2pMnQoZRdKfmixMv0bKQucgPFIE5sRc33Bc2XICmvyskUI
2riqgm49EePMUKh9grcHC6Xy3t7AD9IQOsjgNKyweHs4GdriiGpm5AvMc4GIhvfX
mQEt37q+6klHm79JcQazKgr+PSSa4UCctXa9wrATUe4SI5x/fOq04ANcSpkpPWLe
QcTCkY3BW7IuDrlj6W/hS2HItOvzI2gkQ02THxBx/Tl2sQajfRUToBC/62WQ9qXU
7En6zuuV/2UdwdDmXrc7HUg85zMb74929dJ4mfBtakS+ebbsFbWCB4t2O4HVbxOw
YFNRslo8sGQ4/n5YdAJkYwq8I9DmhLCAOpufeMh6rjGe0DfofJ4CMhVmo38SJL/5
MDV4b1aO8hcm4dqNj/dgphYr97+OSA4A7aiEtNOAeoyBdGqhtmE=
=5LER
-----END PGP SIGNATURE-----