65e2ac1e5f
Further changes: - add ppa:yavdr/experimental-kodi for KODI 18 - add set-kodi-display script to allow switching DISPLAY in dual screen configuration (inkompatible with KODI 17)
12 lines
393 B
Django/Jinja
12 lines
393 B
Django/Jinja
[Unit]
|
|
Description=Start kodi in user session
|
|
|
|
[Service]
|
|
Type=simple
|
|
PassEnvironment=DISPLAY XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
|
|
ExecStartPre=-/usr/bin/set-kodi-display
|
|
ExecStart=/usr/bin/kodi -l /run/lirc/lircd
|
|
ExecStop=/bin/bash -c "/usr/bin/kodi-send --action=QUIT; while ps -p $MAINPID -o comm=; do sleep .25; done"
|
|
TimeoutStopSec=10
|
|
SuccessExitStatus=0 127 SIGKILL
|
|
Restart=on-failure |