Package: slim / 1.3.6-5.1

fix-systemd-service.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Ensure we are starting slim under systemd only when selected
Author: Didier Roche <didrocks@ubuntu.com>
Bug-Debian: http://bugs.debian.org/748668

Index: slim-1.3.6/slim.service
===================================================================
--- slim-1.3.6.orig/slim.service
+++ slim-1.3.6/slim.service
@@ -3,7 +3,6 @@ Description=SLiM Simple Login Manager
 After=systemd-user-sessions.service
 
 [Service]
+ExecStartPre=/bin/sh -c '[ "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/bin/slim" ]'
 ExecStart=/usr/bin/slim -nodaemon
-
-[Install]
-Alias=display-manager.service
+Restart=always