1
0
Fork 0
mirror of synced 2024-06-02 10:44: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 6460e8724e
commit e7dd3b0d59
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,