1
0
Fork 0
mirror of synced 2024-06-02 02:34:40 +12:00

Wine: Run commands through flatpak-spawn when in flatpak

Partially fixes #305
This commit is contained in:
loathingKernel 2023-08-28 18:30:09 +03:00
parent a1a9d3ed57
commit 4350591411
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD

View file

@ -20,6 +20,8 @@ def read_registry(registry: str, wine_pfx: str) -> ConfigParser:
def execute(cmd: List, wine_env: Mapping) -> Tuple[str, str]:
if os.environ.get("container") == "flatpak":
cmd = ["flatpak-spawn", "--host"] + cmd
proc = subprocess.Popen(
cmd,
stdout=subprocess.PIPE,