Changeset 7096
- Timestamp:
- Mar 22, 2018, 12:14:36 PM (3 years ago)
- Location:
- lliurex-store/trunk/fuentes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-store/trunk/fuentes/lliurex-store-gui/usr/share/lliurex-store/lliurex-store-gui/DetailsBox.py
r5703 r7096 515 515 516 516 def open_clicked(self,widget): 517 518 desktop=self.core.main_window.current_pkg["id"] 519 if os.path.exists("/usr/share/applications/%s"%desktop): 520 os.system("gtk-launch %s"%desktop) 517 if self.core.main_window.current_pkg["bundle"]=='snap': 518 snap=self.core.main_window.current_pkg["name"] 519 if os.path.exists("/snap/bin/%s"%snap): 520 os.system("/snap/bin/%s"%snap) 521 elif self.core.main_window.current_pkg["bundle"]=='appimage': 522 appimg=self.core.main_window.current_pkg["package"] 523 if os.path.exists(os.getenv("HOME")+"/.lliurex-store/appimg/%s"%appimg): 524 os.system(os.getenv("HOME")+"/.lliurex-store/appimg/%s"%appimg) 525 else: 526 desktop=self.core.main_window.current_pkg["id"] 527 if os.path.exists("/usr/share/applications/%s"%desktop): 528 os.system("gtk-launch %s"%desktop) 521 529 522 530 #def open_clicked -
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/appImageManager.py
r7092 r7096 333 333 name_splitted=app.split('-') 334 334 name=name_splitted[0] 335 version=name_splitted[1] 336 arch=name_splitted[2] 335 if len(name_splitted)>1: 336 version=name_splitted[1] 337 if len(name_splitted)>2: 338 arch=name_splitted[2] 337 339 filename=outdir+app.lower().replace('appimage',"appdata.xml") 338 340 self._debug("checking if we need to download "+filename) … … 352 354 f.write(" <id>"+app.lower()+"</id>\n") 353 355 f.write(" <pkgname>"+app+"</pkgname>\n") 354 f.write(" <name>"+name+"</name>\n") 356 if version: 357 version='-'+version 358 f.write(" <name>"+name+version+"</name>\n") 355 359 f.write(" <metadata_license>CC0-1.0</metadata_license>\n") 356 360 f.write(" <provides><binary>"+app+"</binary></provides>\n") -
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/infoManager.py
r7092 r7096 106 106 else: 107 107 appInfo['icon']='' 108 108 if appInfo['icon']==None: 109 appInfo['icon']='' 109 110 if app.get_screenshots(): 110 111 thumbnails_list=[]
Note: See TracChangeset
for help on using the changeset viewer.