Created
May 10, 2021 07:41
-
-
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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