Kodi Community Forum
[linux] Autostart application within XBMC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: [linux] Autostart application within XBMC (/showthread.php?tid=170276)



[linux] Autostart application within XBMC - fr0sty - 2013-07-31

With advanced launcher i made a shortcut that i put in my favorites that launches Firefox starting on 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.


RE: [linux] Autostart application within XBMC - artrafael - 2013-07-31

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.


RE: [linux] Autostart application within XBMC - fr0sty - 2013-08-03

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)')