summaryrefslogtreecommitdiffstats
path: root/tdm/tdm.service.debian.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'tdm/tdm.service.debian.cmake')
-rw-r--r--tdm/tdm.service.debian.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/tdm/tdm.service.debian.cmake b/tdm/tdm.service.debian.cmake
new file mode 100644
index 000000000..9222898c4
--- /dev/null
+++ b/tdm/tdm.service.debian.cmake
@@ -0,0 +1,12 @@
+[Unit]
+Description=Trinity Display Manager
+Documentation=man:tdm-trinity(1)
+Conflicts=getty@tty7.service plymouth-quit.service
+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 '[ "$(basename $(cat /etc/X11/default-display-manager 2>/dev/null))" = "tdm" ]'
+ExecStart=@BIN_INSTALL_DIR@/tdm
+Restart=always