File kodi.service of Package kodi

Description = Kodi Media Center (Started with xinit)
After = systemd-user-sessions.service
# if you need the MySQL DB backend, use this block instead of the previous
# After = systemd-user-sessions.service mysql.service
# Wants = mysql.service

#User = kodi
#Group = kodi
#PAMName=login # you might want to try this one, did not work on all systems
Type = simple
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone
Restart = on-abort
RestartSec = 5
StandardInput = tty

WantedBy =