Posts: 43
Joined: Jun 2008
Reputation:
0
2009-07-11, 02:00
(This post was last modified: 2009-07-11, 02:20 by thedroid.)
Is there any method of getting a callback when a plugin has been activated as well as the name of that plugin from a script?
Posts: 43
Joined: Jun 2008
Reputation:
0
2009-07-11, 03:07
(This post was last modified: 2009-07-11, 03:10 by thedroid.)
Currently I start a script manually to start a US VPN or a UK VPN depending on the plugin I wanted to run next. I was looking to automate it based on script name. I did not really want to go the log file route but looks like I may have to. The other alternative is to modify each plugin to call the script (which I really dont want to do)
Posts: 1,331
Joined: Jan 2008
Reputation:
3
rwparris2
Team-XBMC Python Developer
Posts: 1,331
Modifying the plugin would be much better than monitoring the log file IMHO.
Alternatively you could make a plugin-launcher of sorts so you wouldn't have to modify the plugin every time you update. Of course that is just as hacky as all the other solutions...
Of course there may still be an elegant way of achieving this, I just can't think of anything.
Posts: 43
Joined: Jun 2008
Reputation:
0
Yeah modding the plug-in would be better but I did not want to do that as I would have to mod it every-time it gets updated (not that a one liner is that big a deal :-) )