Kodi Community Forum

Full Version: [linux] Autostart application within XBMC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
With advanced launcher i made a shortcut that i put in my favorites that launches Firefox starting on http://www.grooveshark.com invisible in the background of XBMC. I can control the website with the android gsremote app, this works wonderfully. The only problem is that i have to start the shortcut manually every time XBMC starts. I would like to start the shortcut automatically when XBMC is started.
You can create an autoexec.py Python script in your userdata (wiki) directory that launches the same command used to launch Firefox as in your favourites.xml. Search the forums for the term autoexec.py to see examples.
Thanks! Got things working now, needed to replace some characters to make it work. For the interested the contents of my .xbmc/userdata/autoexec.py file:
import xbmc
xbmc.executebuiltin('PlayMedia(plugin://plugin.program.advanced.launcher/?50acd55d0c0b753fa26bcf89033af0fb)')