File: 22_systemd_service.diff

package info (click to toggle)
xdm 1%3A1.1.17-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,656 kB
  • sloc: ansic: 13,095; sh: 5,281; makefile: 507
file content (15 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/xdm.service.in
+++ b/xdm.service.in
@@ -3,9 +3,9 @@ Description=X-Window Display Manager
 After=systemd-user-sessions.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/bin/xdm" ]'
 ExecStart=BINDIR/xdm -nodaemon
 Type=notify
 NotifyAccess=all
-
-[Install]
-Alias=graphical.target.wants/xdm.service