retroarch-standalone-service/init/kodi-wayland.service
graysky 60936bef1d kodi-wayland: cage needs env var set to work
Still not optimal but this addition allows kodi-wayland.service to start
now that we are no longer in user.slice.  Fixes #27.
2020-12-16 13:32:25 -05:00

22 lines
647 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
Environment="XDG_RUNTIME_DIR=/tmp"
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