]> git.rmz.io Git - dotfiles.git/blobdiff - mkosi/kodi/mkosi.extra/etc/systemd/system/kodi-wayland.service
mkosi/kodi: use RuntimeDirectory to create XDG_RUNTIME_DIR
[dotfiles.git] / mkosi / kodi / mkosi.extra / etc / systemd / system / kodi-wayland.service
index 3caa049451df32e9a5ab435995befff67f645abd..328fecf5b8185e4ce7b799144c676d65109a9152 100644 (file)
@@ -7,13 +7,17 @@ Conflicts=getty@tty1.service
 [Service]
 User=kodi
 Group=kodi
-Environment=XDG_RUNTIME_DIR=/tmp
 EnvironmentFile=-/etc/conf.d/kodi-standalone
-TTYPath=/dev/tty1
 Environment=WINDOWING=wayland
+
+RuntimeDirectory=kodi
+Environment=XDG_RUNTIME_DIR=%t/kodi
+
 ExecStart=/usr/bin/cage -- /usr/bin/kodi-standalone
 ExecStop=/usr/bin/killall --user kodi --exact --wait kodi-wayland
 Restart=on-abort
+
+TTYPath=/dev/tty1
 StandardInput=tty
 StandardOutput=journal