From b2caa0ef83453eaf2cfc2605852dc89d2298519e Mon Sep 17 00:00:00 2001 From: nl6720 Date: Thu, 14 May 2020 11:19:11 +0300 Subject: [PATCH] Add kodi-wayland.service This allows running Kodi in a Wayland session using the Cage compositor. --- init/kodi-wayland.service | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 init/kodi-wayland.service diff --git a/init/kodi-wayland.service b/init/kodi-wayland.service new file mode 100644 index 0000000..3c70729 --- /dev/null +++ b/init/kodi-wayland.service @@ -0,0 +1,19 @@ +[Unit] +Description=Kodi standalone (Wayland) +After=remote-fs.target systemd-user-sessions.service 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 +PAMName=login +TTYPath=/dev/tty1 +Environment=WINDOWING=wayland +ExecStart=/usr/bin/cage -- /usr/bin/kodi-standalone +Restart=on-abort +StandardInput=tty +StandardOutput=journal + +[Install] +WantedBy=graphical.target