[arch] refactoring: removing unneeded parameters from 'launch' method

This commit is contained in:
Vinicius Moreira
2022-02-24 09:54:29 -03:00
parent b67860f538
commit 23bc65b00e
2 changed files with 2 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Arch - Arch
- info dialog: displaying the "executable" field if the package is recognized as an application - info dialog: displaying the "executable" field if the package is recognized as an application
- removing the "%U" parameter before launching applications to prevent error messages - removing the "%U" parameter before launching applications to prevent error messages
- minor code refactoring
- UI - UI
- upgrade summary dialog size - upgrade summary dialog size

View File

@@ -2781,7 +2781,7 @@ class ArchManager(SoftwareManager):
def launch(self, pkg: ArchPackage): def launch(self, pkg: ArchPackage):
if pkg.command: if pkg.command:
final_cmd = pkg.command.replace('%U', '') final_cmd = pkg.command.replace('%U', '')
subprocess.Popen(args=[final_cmd], shell=True, env={**os.environ}) subprocess.Popen(final_cmd, shell=True)
def get_screenshots(self, pkg: SoftwarePackage) -> List[str]: def get_screenshots(self, pkg: SoftwarePackage) -> List[str]:
pass pass