aboutsummaryrefslogtreecommitdiffstats
path: root/user/tmux.service
diff options
context:
space:
mode:
Diffstat (limited to 'user/tmux.service')
-rw-r--r--user/tmux.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/user/tmux.service b/user/tmux.service
index 089e759..1143af5 100644
--- a/user/tmux.service
+++ b/user/tmux.service
@@ -7,6 +7,7 @@ ConditionFileIsExecutable=/usr/bin/tmux
Type=forking
KillMode=control-group
Environment=TMUX_TMPDIR=/run/user/%U/tmux
+ExecStartPre=/usr/bin/mkdir -p $TMUX_TMPDIR
ExecStart=/usr/bin/tmux new-session -s user -d
ExecStop=/usr/bin/tmux kill-session -t user