[flatpak] fix -> some env vars not available during the launch process

This commit is contained in:
Vinicius Moreira
2020-08-20 14:27:24 -03:00
parent e06c677602
commit 3691a2162c
2 changed files with 3 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
<p align="center">
<img src="https://raw.githubusercontent.com/vinifmor/bauh-files/master/pictures/releases/0.9.7/flatpak_refs.png">
</p>
- some environment variables are not available during the common operations (install, upgrade, downgrade, uninstall)
- some environment variables are not available during the common operations (install, upgrade, downgrade, uninstall, launch)
- minor fixes
- Snap
- some environment variables are not available during the common operations (install, upgrade, downgrade, uninstall, launch)

View File

@@ -1,3 +1,4 @@
import os
import re
import subprocess
import traceback
@@ -384,7 +385,7 @@ def list_remotes() -> Dict[str, Set[str]]:
def run(app_id: str):
subprocess.Popen(['flatpak', 'run', app_id])
subprocess.Popen(['flatpak run {}'.format(app_id)], shell=True, env={**os.environ})
def map_update_download_size(app_ids: Iterable[str], installation: str, version: str) -> Dict[str, int]: