92036950d8
Use the same dependencies and their order in both systemd units. Add additional units of services that kodi uses. Don't use "Requires=", kodi can run without a network connection. Export WINDOWING=x11 in kodi.service to skip the autodetection that /usr/bin/kodi-standalone performs. Give kodi-gbm.service the privileges of input group, this allows removing the kodi user from that group's membership since kodi.service does not need it.
20 lines
519 B
Desktop File
20 lines
519 B
Desktop File
[Unit]
|
|
Description=Kodi standalone (GBM)
|
|
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
|
|
SupplementaryGroups=input
|
|
PAMName=login
|
|
TTYPath=/dev/tty1
|
|
Environment=WINDOWING=gbm
|
|
ExecStart=/usr/bin/kodi-standalone
|
|
Restart=on-abort
|
|
StandardInput=tty
|
|
|
|
[Install]
|
|
WantedBy=graphical.target
|