kodi-wayland: use runtime directory created by systemd

This will sort out the permissions warning mentionned in #27.

The RuntimeDirectory is created in /run/kodi with the necessary
permissions, %t points at /run.

See systemd.exec(5) and systemd.unit(5).
This commit is contained in:
Samir Benmendil 2020-12-29 01:51:08 +00:00
parent ff58330ee4
commit f0c8619af7

View File

@ -7,7 +7,8 @@ Conflicts=getty@tty1.service
[Service] [Service]
User=kodi User=kodi
Group=kodi Group=kodi
Environment="XDG_RUNTIME_DIR=/tmp" RuntimeDirectory=kodi
Environment="XDG_RUNTIME_DIR=%t/kodi"
EnvironmentFile=-/etc/conf.d/kodi-standalone EnvironmentFile=-/etc/conf.d/kodi-standalone
TTYPath=/dev/tty1 TTYPath=/dev/tty1
Environment=WINDOWING=wayland Environment=WINDOWING=wayland