I’ve got OSMC installed and have root access. I’m trying to run a script on startup that will automatically start a playlist of videos, the code is as follows. Very simple
Create a service addon for kodi. Or more simply, install a service addon from the kodi repo (one you don’t want to use) and replace the contents of the default.py file with your three lines.
Thank you! Then is there a way to run the service addon during startup?
Edit: its too early… I now realize a service addon already means that it runs during startup. Ill try it out!
Thanks for the tip Karnage! Got it running on a service I didn’t want to use then I just created my own.
It runs on startup after sitting on the homescreen for a second or two, is this normal? I was really hoping it would go straight from boot screen to video. Just something slightly annoying I wish I could fix
Services run after kodi begins, the few seconds on the home screen is unavoidable.
You could just delete the home screen, so nothing will show. Find the relevant Home.xml file for the skin you are using and remove the contents, or maybe the contents within the first node. (After making a backup copy, of course.)