retroarch-standalone-service/init/kodi-wayland.service
Samir Benmendil f0c8619af7 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).
2020-12-29 01:51:08 +00:00

23 lines
672 B
Desktop File

[Unit]
Description=Kodi standalone (Wayland)
After=remote-fs.target network-online.target nss-lookup.target sound.target bluetooth.target polkit.service upower.service mysqld.service
Wants=network-online.target polkit.service upower.service
Conflicts=getty@tty1.service
[Service]
User=kodi
Group=kodi
RuntimeDirectory=kodi
Environment="XDG_RUNTIME_DIR=%t/kodi"
EnvironmentFile=-/etc/conf.d/kodi-standalone
TTYPath=/dev/tty1
Environment=WINDOWING=wayland
ExecStart=/usr/bin/cage -- /usr/bin/kodi-standalone
ExecStop=/usr/bin/killall --user kodi --exact --wait kodi-wayland
Restart=on-abort
StandardInput=tty
StandardOutput=journal
[Install]
Alias=display-manager.service