Forget autoexec.py: the right way to automatically starts addons
#26
Exclamation 
Please be aware that the 'startup' option contains a design flaw when using multiple profiles!

Code:
<extension point="xbmc.service"
             library="service.py" start="startup">
</extension>

Let's assume we have three profiles (Master user, Alice and Bob) and we are using the login screen at startup of XBMC.
At startup of XBMC, the service will start automatically and you will be presented with the login screen (if enabled). Now, with no one logged in yet, from which profile will your addon load its settings? Well, actually someone is already logged in and this can be either Master user, Alice or Bob depending on who was logged in during the last session.

So when using multiple profiles, the configuration of your addon must be exactly the same for all profiles, otherwise you won't know what your addon will do. One time it will use the settings from Alice, the next time from Bob and another time the settings from the Master user may be used.

In my opinion, addon services starting at startup must always use the settings from the Master user, should only be configurable by the master user and should only be enabled/disabled by the master user. Services that require profile specific settings should use the 'login' start type.

Any thoughts on this?
Reply


Messages In This Thread
[No subject] - by daledude - 2011-01-31, 23:16
[No subject] - by spiff - 2011-02-01, 12:43
[No subject] - by V-Turn - 2011-02-03, 01:37
[No subject] - by solexalex - 2011-02-05, 21:51
[No subject] - by blinkseb - 2011-02-06, 02:43
[No subject] - by solexalex - 2011-02-06, 13:13
[No subject] - by vikjon0 - 2011-02-13, 19:51
[No subject] - by lophie - 2011-02-24, 21:22
[No subject] - by blinkseb - 2011-02-24, 22:07
[No subject] - by lophie - 2011-02-24, 22:39
[No subject] - by V-Turn - 2011-03-01, 01:13
[No subject] - by Joerg.Liebner - 2011-03-16, 16:51
[No subject] - by spiff - 2011-03-16, 16:56
[No subject] - by cbull - 2011-04-26, 18:45
[No subject] - by malte - 2011-06-02, 11:38
[No subject] - by vikjon0 - 2011-06-04, 13:50
[No subject] - by malte - 2011-06-07, 07:23
[No subject] - by paddycarey - 2011-09-26, 04:45
[No subject] - by Steve Evans - 2011-10-06, 23:29
[No subject] - by _BJ1 - 2011-10-07, 09:41
[No subject] - by queeup - 2011-10-27, 02:42
[No subject] - by LakersFan - 2012-01-28, 00:20
[No subject] - by Martijn - 2012-01-28, 02:28
RE: Forget autoexec.py: the right way to automatically starts addons - by leechguy - 2012-10-20, 12:50
Logout Mark Read Team Forum Stats Members Help
Forget autoexec.py: the right way to automatically starts addons2