- Timestamp:
- Jun 26, 2019, 12:34:25 AM (20 months ago)
- Location:
- lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/appImageManager.py
r8226 r8703 32 32 self.icons_dir=self.cache_dir+"/icons" 33 33 self.cache_xmls=self.cache_dir+"/xmls/appimage" 34 self.appimage_dir=os.getenv("HOME")+"/.local/bin" 34 self.appimage_dir=os.getenv("HOME")+"/Applications" 35 #Prevent appimage desktop integration 36 if not os.path.isfile("%s/.local/share/appimagekit/no_desktopintegration"%os.environ['HOME']): 37 if not os.path.isdir("%s/.local/share/appimagekit/"%os.environ['HOME']): 38 os.makedirs("%s/.local/share/appimagekit/"%os.environ['HOME']) 39 try: 40 f=open("%s/.local/share/appimagekit/no_desktopintegration"%os.environ['HOME'],'w') 41 f.close() 42 except Exception as e: 43 self._debug("Couldn't create %s"%"%s/.local/share/appimagekit/no_desktopintegration"%os.environ['HOME']) 44 self._debug("Reason: 5s"%e) 35 45 #To get the description of an app we must go to a specific url defined in url_info. 36 46 #$(appname) we'll be replaced with the appname so the url matches the right one. … … 158 168 self._callback(acumbf,app_size) 159 169 st = os.stat(dest_path) 160 os.chmod(dest_path, st.st_mode | 0o 111)170 os.chmod(dest_path, st.st_mode | 0o755) 161 171 self._set_status(0) 162 172 except Exception as e: -
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/shManager.py
r8223 r8703 80 80 err=0 81 81 try: 82 sudo_cmd=['gksudo',dest_path] 82 # sudo_cmd=['gksudo',dest_path] 83 sudo_cmd=['pkexec',dest_path] 83 84 #self._debug("executing "+str(sudo_cmd)) 84 85 launched_cmd=subprocess.Popen(sudo_cmd,stdout=subprocess.PIPE,stdin=subprocess.PIPE,stderr=subprocess.PIPE) … … 101 102 except subprocess.CalledProcessError as callError: 102 103 # err=callError.returncode 103 #if gksudofails set "permission denied" error104 #if authentication fails set "permission denied" error 104 105 err=303 105 106 except Exception as e: -
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/snapManager.py
r8223 r8703 276 276 stable_pkgs=[] 277 277 for section in sections: 278 apps =self.snap_client.find_section_sync(Snapd.FindFlags.MATCH_NAME,section,None)278 apps,curr=self.snap_client.find_section_sync(Snapd.FindFlags.MATCH_NAME,section,None) 279 279 for pkg in apps: 280 280 stable_pkgs.append(pkg) … … 292 292 while 'Snapd' not in str(type(wrap)): 293 293 time.sleep(0.1) 294 snaps =self.snap_client.find_finish(wrap)294 snaps,curr=self.snap_client.find_finish(wrap) 295 295 if type(snaps)!=type([]): 296 296 pkgs=[snaps] … … 315 315 pkgs=None 316 316 try: 317 pkgs =self.snap_client.find_sync(Snapd.FindFlags.MATCH_NAME,tokens,None)317 pkgs,curr=self.snap_client.find_sync(Snapd.FindFlags.MATCH_NAME,tokens,None) 318 318 except Exception as e: 319 319 print("ERR: %s"%e) -
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/zmdManager.py
r8223 r8703 67 67 except: 68 68 self.disabled=True 69 print("ERROR2!!!!")70 69 self._set_status(10) 71 70 self.progress=100 … … 98 97 err=0 99 98 try: 100 zmd_sudo=['p e',zmd]99 zmd_sudo=['pkexec',zmd] 101 100 #self._debug("executing "+str(zmd_sudo)) 102 101 launched_zmd=subprocess.Popen(zmd_sudo,stdout=subprocess.PIPE,stdin=subprocess.PIPE,stderr=subprocess.PIPE) … … 161 160 f3.close() 162 161 os.chmod(zmd_script,stat.S_IEXEC|stat.S_IREAD|stat.S_IWRITE|stat.S_IROTH|stat.S_IWOTH|stat.S_IXOTH|stat.S_IRGRP|stat.S_IWGRP|stat.S_IXGRP) 163 zmd_sudo=['gksudo',zmd_script] 162 # zmd_sudo=['gksudo',zmd_script] 163 zmd_sudo=['pkexec',zmd_script] 164 164 try: 165 #self._debug("Executing "+str(zmd_sudo))165 self._debug("Executing "+str(zmd_sudo)) 166 166 zmd_launcher=os.path.basename(zmd) 167 167 zmd_launcher=os.path.splitext(zmd_launcher)[0] -
lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/storeManager.py
r8223 r8703 29 29 self._propagate_dbg=False 30 30 self.store=None 31 self.stores={} 31 self.cache="%s/.cache/lliurex-store"%os.environ['HOME'] 32 self.cache_data="%s/data"%self.cache 33 if not os.path.isdir(self.cache_data): 34 os.makedirs(self.cache_data) 35 self.cache_completion="%s/bash_completion"%self.cache_data 32 36 self.related_actions={ 33 37 'load':['load'], … … 487 491 while store_pool.qsize(): 488 492 self.store=store_pool.get() 493 with open(self.cache_completion,'w') as f: 494 for app in self.store.get_apps(): 495 f.write("%s\n"%app.get_pkgname_default()) 496 489 497 #def _load_Store 490 498
Note: See TracChangeset
for help on using the changeset viewer.