Bug#768774: systemd randomly starts one of the installed display managers

Michael Biebl biebl at debian.org
Sun Nov 9 16:47:42 GMT 2014


Control: reassign -1 slim

Am 09.11.2014 um 09:37 schrieb dAgeCKo:
> Package: systemd
> Version: 208-8
> Severity: normal
> Debian: Testing amd64
> Regression: No
> 
> If several display managers are installed (for example gdm3 and slim),
> at each boot, systemd seems to randomly choose one and launch it.
> So we might have gdm3 at one boot and slim at another boot.

That's not a bug in systemd, but slim
In Debian there is traditionally a /etc/X11/default-display-manager
config file, which describes the default display manager.

The sysv init script for the display manager reads that file, checks if
it's supposed to start and exit's otherwise. This means, you can have
multiple display managers installed and all of their sysv init scripts
enabled.

slim does ship a native .service file, which doesn't include that check.
It should add a check like gdm.service (or lightdm.service)

ExecStartPre=/bin/sh -c '[ "$(cat /etc/X11/default-display-manager
2>/dev/null)" = "/usr/sbin/gdm3" ]'

slim should also setup the /etc/systemd/system/display-manager.service
in its maintainer scripts.

I'm re-assigning this bug to slim. Ideally it uses the same scheme as
was implemented for gdm3 and lightdm.

Joss and Martin have designed and implemented that scheme, so I've CCed
them in case the slim maintainer has more questions.

Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20141109/1acac2cb/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list