summaryrefslogtreecommitdiffstats
path: root/ubuntu/_base/tdebase/debian/tdm.service
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/_base/tdebase/debian/tdm.service')
-rw-r--r--ubuntu/_base/tdebase/debian/tdm.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/ubuntu/_base/tdebase/debian/tdm.service b/ubuntu/_base/tdebase/debian/tdm.service
new file mode 100644
index 000000000..349823a9f
--- /dev/null
+++ b/ubuntu/_base/tdebase/debian/tdm.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Trinity Display Manager
+Documentation=man:tdm-trinity(1)
[email protected] plymouth-quit.service
+After=systemd-user-sessions.service [email protected] 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=/opt/trinity/bin/tdm
+Restart=always