Skip to content

Instantly share code, notes, and snippets.

@un1versal
Last active February 9, 2017 18:08
Show Gist options
  • Save un1versal/f853ed9f6b0d02bea88c to your computer and use it in GitHub Desktop.
Save un1versal/f853ed9f6b0d02bea88c to your computer and use it in GitHub Desktop.
wget https://gist.github.com/uNiversaI/f853ed9f6b0d02bea88c/raw -O /etc/systemd/system/kodi.service
[Unit]
Description = Start Kodi using xinit
Wants = network-online.target
After = systemd-user-sessions.service network-online.target sound.target
[Service]
User = kodi
Group = kodi
Type = simple
PAMName = login
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7 -bs -nocursor
Restart = on-abort
[Install]
WantedBy = multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment