[arch] improvement: removing the '%U' parameter before launching applications to prevent error messages

This commit is contained in:
Vinicius Moreira
2022-02-24 09:51:54 -03:00
parent 6bc8cc91c2
commit b67860f538
2 changed files with 3 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Improvements
- Arch
- 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
- UI
- upgrade summary dialog size

View File

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