From f0c8619af7c5bbd2d64366ce920dc5f75cf1e2e2 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 29 Dec 2020 01:51:08 +0000 Subject: [PATCH] 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). --- init/kodi-wayland.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/kodi-wayland.service b/init/kodi-wayland.service index 6c5e6af..8c3c199 100644 --- a/init/kodi-wayland.service +++ b/init/kodi-wayland.service @@ -7,7 +7,8 @@ Conflicts=getty@tty1.service [Service] User=kodi Group=kodi -Environment="XDG_RUNTIME_DIR=/tmp" +RuntimeDirectory=kodi +Environment="XDG_RUNTIME_DIR=%t/kodi" EnvironmentFile=-/etc/conf.d/kodi-standalone TTYPath=/dev/tty1 Environment=WINDOWING=wayland