Moving desktop-base from Depends to Recommends.
[debian/lxdm.git] / debian / lxdm.service
index b8a5da0..7e9cb45 100644 (file)
@@ -7,11 +7,7 @@ After=systemd-user-sessions.service getty@tty7.service plymouth-quit.service
 [Service]
 # temporary safety check until all DMs are converted to correct
 # display-manager.service symlink handling
-ExecStartPre=/bin/sh -c '[ "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/lxdm" ]'
+ExecStartPre=/bin/sh -c '[ ! -f /etc/X11/default-display-manager -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/lxdm" ]'
 ExecStart=/usr/sbin/lxdm
 Restart=always
 IgnoreSIGPIPE=no
-BusName=org.freedesktop.DisplayManager
-
-[Install]
-Alias=display-manager.service