From 20f049315cc829057fe57deebc3062a7c300928b Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Thu, 20 Aug 2020 17:28:31 -0300 Subject: [PATCH] [arch] fix -> not informing the env vars during the launch process --- CHANGELOG.md | 2 +- bauh/gems/arch/controller.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fcac1531..1ccdbfff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -67,7 +67,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - multi-threaded download: not retrieving correctly some source files URLs (e.g: linux-xanmod-lts) - importing PGP keys (Generic error). Now the key server is specified: `gpg --keyserver SERVER --recv-key KEYID` (the server address is retrieved from [bauh-files](https://github.com/vinifmor/bauh-files/blob/master/arch/gpgservers.txt)) - not installing the correct package built when several are generated (e.g: linux-xanmod-lts) - - some environment variables are not available during the common operations (install, upgrade, downgrade, uninstall, makepkg) + - some environment variables are not available during the common operations (install, upgrade, downgrade, uninstall, makepkg, launch) - Flatpak - downgrading crashing with version 1.8.X - history: the top commit is returned as "(null)" in version 1.8.X diff --git a/bauh/gems/arch/controller.py b/bauh/gems/arch/controller.py index 4de5646b..78576241 100644 --- a/bauh/gems/arch/controller.py +++ b/bauh/gems/arch/controller.py @@ -2412,7 +2412,7 @@ class ArchManager(SoftwareManager): def launch(self, pkg: ArchPackage): if pkg.command: - subprocess.Popen(pkg.command.split(' ')) + subprocess.Popen(args=[pkg.command], shell=True, env={**os.environ}) def get_screenshots(self, pkg: SoftwarePackage) -> List[str]: pass