fix typo.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-base / tuxcom / tuxbox-tuxcom-32bpp / add_e2_plugin.diff
1 diff -Naur tuxcom_cvs/python/Makefile.am tuxcom/python/Makefile.am
2 --- tuxcom_cvs/python/Makefile.am       1970-01-01 01:00:00.000000000 +0100
3 +++ tuxcom/python/Makefile.am   2008-11-03 13:56:54.425916639 +0100
4 @@ -0,0 +1,5 @@
5 +installdir = $(LIBDIR)/enigma2/python/Plugins/Extensions/Tuxcom
6 +
7 +install_DATA = \
8 +       plugin.py \
9 +       __init__.py
10 diff -Naur tuxcom_cvs/python/plugin.py tuxcom/python/plugin.py
11 --- tuxcom_cvs/python/plugin.py 1970-01-01 01:00:00.000000000 +0100
12 +++ tuxcom/python/plugin.py     2008-11-03 14:22:15.705918505 +0100
13 @@ -0,0 +1,35 @@
14 +from enigma import *
15 +from Screens.Screen import Screen
16 +from Plugins.Plugin import PluginDescriptor
17 +
18 +class TuxComStarter(Screen):
19 +       skin = """
20 +               <screen position="1,1" size="1,1" title="TuxCom" >
21 +                </screen>"""
22 +
23 +        def __init__(self, session, args = None):
24 +               self.skin = TuxComStarter.skin
25 +               Screen.__init__(self, session)
26 +               self.container=eConsoleAppContainer()
27 +               self.container.appClosed.append(self.finished)
28 +               self.runapp()
29 +               
30 +       def runapp(self):
31 +               eDBoxLCD.getInstance().lock()
32 +               eRCInput.getInstance().lock()
33 +               fbClass.getInstance().lock()
34 +               if self.container.execute("/usr/bin/tuxcom"):
35 +                       self.finished(-1)
36 +
37 +       def finished(self,retval):
38 +               fbClass.getInstance().unlock()
39 +               eRCInput.getInstance().unlock()
40 +               eDBoxLCD.getInstance().unlock()
41 +               self.close()
42 +
43 +def main(session, **kwargs):
44 +       session.open(TuxComStarter)
45 +
46 +def Plugins(**kwargs):
47 +       return PluginDescriptor(name="TuxCom", description="TuxBox Commander", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main)
48 +