mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +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
|
### Improvements
|
||||||
- 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
|
||||||
|
|
||||||
- UI
|
- UI
|
||||||
- upgrade summary dialog size
|
- upgrade summary dialog size
|
||||||
|
|||||||
@@ -2780,7 +2780,8 @@ class ArchManager(SoftwareManager):
|
|||||||
|
|
||||||
def launch(self, pkg: ArchPackage):
|
def launch(self, pkg: ArchPackage):
|
||||||
if pkg.command:
|
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]:
|
def get_screenshots(self, pkg: SoftwarePackage) -> List[str]:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user