Skip to content

Instantly share code, notes, and snippets.

@radupotop
Last active April 9, 2024 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radupotop/5ed69a4fc0a06c9341a2cabd82639ee8 to your computer and use it in GitHub Desktop.
Save radupotop/5ed69a4fc0a06c9341a2cabd82639ee8 to your computer and use it in GitHub Desktop.
/etc/systemd/system/kodi-x11.service
[Unit]
Description=Kodi standalone (X11)
After=remote-fs.target systemd-user-sessions.service network-online.target nss-lookup.target sound.target bluetooth.target polkit.service upower.service mysqld.service lircd.service
Wants=network-online.target polkit.service upower.service
Conflicts=getty@tty1.service
[Service]
User=kodi
Group=kodi
EnvironmentFile=-/etc/conf.d/kodi-standalone
PAMName=login
TTYPath=/dev/tty1
ExecStart=/usr/bin/xinit /usr/bin/kodi --windowing=x11 --standalone -fs -- :0 -quiet -nolisten tcp vt1
ExecStop=/usr/bin/killall --user kodi --exact --wait kodi.bin
Restart=on-abort
StandardInput=tty
StandardOutput=journal
[Install]
Alias=display-manager.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment