[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

@@ -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]: