Select Git revision
kodi.service 899 B
[Unit]
Description=Kodi Media Center on %i
After=systemd-user-sessions.service sound.target network-online.target xorg.service
# Require the library to be mounted.
After=srv-library.mount
# D-Bus is necessary for contacting logind. Logind is required.
Wants=dbus.socket
After=dbus.socket
Conflicts=getty@%i.service
Before=graphical.target
[Service]
User=kodi
PAMName=login
SupplementaryGroups=audio
SupplementaryGroups=cdrom
Environment="DISPLAY=:0"
ExecStart=flatpak run --device=all --unshare=network --filesystem=/etc/group --filesystem=/srv/library tv.kodi.Kodi --standalone --windowing=x11 -fs
Type=simple
Restart=always
RestartSec=5
KillMode=control-group
# Fail to start if not controlling the tty.
StandardError=journal
# Log this user with utmp, letting it show up with commands 'w' and 'who'.
UtmpIdentifier=%i
UtmpMode=user
[Install]
WantedBy=graphical.target
DefaultInstance=tty1