Skip to content

Instantly share code, notes, and snippets.

@andrebrait
Created May 10, 2021 07:41
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 andrebrait/82d87be8ad2c1bc41863b6222543153a to your computer and use it in GitHub Desktop.
Save andrebrait/82d87be8ad2c1bc41863b6222543153a to your computer and use it in GitHub Desktop.
Start KODI on graphical interface startup/desktop login, useful for Raspberry Pi users
# This is useful for those who want to have KODI running on startup, but still want to use a full desktop (e.g. Raspbian).
# This will make KODI run as soon as the graphical interface (be it X or Wayland) starts up and the user logs in
# It will only start KODI after the network and remote shares have been started up
[Unit]
Description = Kodi Media Center
After = remote-fs.target network-online.target graphical.target
Wants = graphical.target
[Service]
User = pi
Group = pi
Type = simple
ExecStart = /usr/bin/kodi-standalone
Restart = on-abort
RestartSec = 5
[Install]
WantedBy = graphical.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment