mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 20:54:15 +02:00
[flatpak] fix -> some env vars not available during the launch process
This commit is contained in:
@@ -76,7 +76,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://raw.githubusercontent.com/vinifmor/bauh-files/master/pictures/releases/0.9.7/flatpak_refs.png">
|
<img src="https://raw.githubusercontent.com/vinifmor/bauh-files/master/pictures/releases/0.9.7/flatpak_refs.png">
|
||||||
</p>
|
</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
|
- minor fixes
|
||||||
- Snap
|
- Snap
|
||||||
- some environment variables are not available during the common operations (install, upgrade, downgrade, uninstall, launch)
|
- some environment variables are not available during the common operations (install, upgrade, downgrade, uninstall, launch)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import os
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import traceback
|
import traceback
|
||||||
@@ -384,7 +385,7 @@ def list_remotes() -> Dict[str, Set[str]]:
|
|||||||
|
|
||||||
|
|
||||||
def run(app_id: 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]:
|
def map_update_download_size(app_ids: Iterable[str], installation: str, version: str) -> Dict[str, int]:
|
||||||
|
|||||||
Reference in New Issue
Block a user