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

2023-07-25 Thread Diederik de Haas
On 15 Nov 2022 01:21:00 +0900 Marc Dequènes (duck)  wrote:
> On 2022-11-13 22:58, Taavi Väänänen wrote:
> 
> > 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.
> 
> That would be nice indeed.
> 
> I looked at lightdm and gdm3 for example and I don't get how that's 
> supposed to work.
> 
> 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.

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.



signature.asc
Description: This is a digitally signed message part.


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

2022-11-14 Thread duck

Control: tag -1 +help

Quack,

On 2022-11-13 22:58, Taavi Väänänen wrote:


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.


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<

--
Marc Dequènes



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

2022-11-13 Thread Taavi Väänänen

Package: greetd
Version: 0.8.0-1
Severity: important

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.

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en

Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages greetd depends on:
ii  adduser3.129
ii  libc6  2.36-4
ii  libgcc-s1  12.2.0-9
ii  libpam0g   1.5.2-5

greetd recommends no packages.

Versions of packages greetd suggests:
pn  wlgreet  


OpenPGP_0xEF242F709F912FBE.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature