mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 21:44:16 +02:00
[arch] improvement: removing the '%U' parameter before launching applications to prevent error messages
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user