@@ -106,18 +106,6 @@ def __init__(self):
106106 }
107107 self .appsDict .append (app )
108108
109- show = ''
110- app = {
111- 'name' : 'SKipper app' ,
112- 'show' : '/usr/local/bin/skipper/SkipperApp' ,
113- 'edit' : '' ,
114- 'included' : 'no' ,
115- 'plugin' : '' ,
116- 'install' : self .platform .admin + ' python3 ' + self .currentdir + '/installskipper.py' ,
117- 'uninstall' : self .platform .admin + ' python3 ' + self .currentdir + '/uninstallskipper.py' ,
118- }
119- self .appsDict .append (app )
120-
121109 if os .path .dirname (os .path .abspath (__file__ ))[0 :4 ] == '/usr' :
122110 v = version
123111 else : v = version .version
@@ -368,11 +356,6 @@ def OnRefreshButton(self, event=0):
368356 else :
369357 self .listApps .SetItem (item , 1 , _ ('not installed' ))
370358 self .listApps .SetItemBackgroundColour (item ,(200 ,200 ,200 ))
371- elif i ['name' ] == 'SKipper app' :
372- if os .path .isfile ('/etc/apt/sources.list.d/openrepo-skipperapp.list' ): self .listApps .SetItem (item , 1 , _ ('installed' ))
373- else :
374- self .listApps .SetItem (item , 1 , _ ('not installed' ))
375- self .listApps .SetItemBackgroundColour (item ,(200 ,200 ,200 ))
376359 else :
377360 self .listApps .SetItem (item , 1 , _ ('not installed' ))
378361 self .listApps .SetItemBackgroundColour (item ,(200 ,200 ,200 ))
@@ -464,12 +447,7 @@ def OnShowButton(self, e):
464447 index = self .listApps .GetFirstSelected ()
465448 if index == - 1 : return
466449 apps = list (reversed (self .appsDict ))
467- url = apps [index ]['show' ]
468-
469- if url .startswith ("http" ):
470- webbrowser .open (url , new = 2 )
471- else :
472- os .system (url )
450+ webbrowser .open (apps [index ]['show' ], new = 2 )
473451
474452 ################################################################################
475453
0 commit comments