Kodi added to the system autostart in Raspberry Pi OS
The following method describes how we can add kodi to the system's autostart.
Kodi will be launched immediately after restarting our Raspberry.
We'll do the whole thing in just a few clicks.
We start our terminal and issue a command:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | sudo tee -a /lib/systemd/system/kodi.service <<_EOF_ [Unit] Description = Kodi Media Center After = remote-fs.target network-online.target Wants = network-online.target [Service] User = pi Group = pi Type = simple ExecStart = /usr/bin/kodi-standalone Restart = on-abort RestartSec = 5 [Install] WantedBy = multi-user.target _EOF_ |
Then activate the service by command:
1 | sudo systemctl enable kodi.service |
That's all 😉 We can test the whole thing by restarting our hickey.