toolkit: add NotifiablePluginBrowser
[enigma2-plugins.git] / toolkit / src / plugin.py
1 def autostart(reason, *args, **kwargs):
2         import NotifiablePluginBrowser
3         if reason == 1:
4                 NotifiablePluginBrowser.uninstall()
5
6 def Plugins(**kwargs):
7         from Plugins.Plugin import PluginDescriptor
8         return [
9                 PluginDescriptor(
10                         where=PluginDescriptor.WHERE_AUTOSTART,
11                         fnc=autostart,
12                         needsRestart=False,
13                 ),
14         ]