Fixing problem with lxdm.service file: no Alias is required (Closes: #770404).
[debian/lxdm.git] / debian / lxdm.service
index b8a5da0..19fc092 100644 (file)
@@ -7,11 +7,8 @@ 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