Start service addon after install - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Start service addon after install (/showthread.php?tid=123756) |
Start service addon after install - Gujs - 2012-02-23 I am working on providing the best possible experience with service addons in openelec system. I have a possibility to start / stop service binary addon with enable / disable functionality in addon manager. Now I would also like to get service addon started after it is installed. I know that service addon starts at XBMC start, but is it possible to get it started right after it is installed? This is addon.xml file I use: Code: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> I tried with both parameters in extension point start="[login|startup]" and this doesn't change anything about starting service addon after install. Would it be possible to add two additional parameters in extension point to enable startup of service addon at install and to restart service addon at upgrade. - jmarshall - 2012-02-24 This seems like a reasonable request for me (user installs service addon, it'll start once XBMC restarts (or login)) so seems reasonable that it should start up straight away on install. If you want to see about it, you probably need to call ADDON::CAddonMgr::Get().StartServices() (or some variant thereof - you want to start only the new service) when the install job completes in CAddonInstaller::OnJobComplete(). |