From 2d8d1bab43ea273fdf9c5fdd44049fdc379e1df3 Mon Sep 17 00:00:00 2001 From: Dom Rodriguez Date: Sat, 13 Jul 2024 14:27:16 +0100 Subject: [PATCH] fix: Fix missing `--env=` prefix on Flatpak --- wemod_launcher/prepare.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wemod_launcher/prepare.py b/wemod_launcher/prepare.py index 0d71114..d14fe09 100755 --- a/wemod_launcher/prepare.py +++ b/wemod_launcher/prepare.py @@ -326,8 +326,8 @@ def check_flatpak(): infpr = os.getenv("WeModInfProtect", "1") infpr = str(int(infpr) + 1) - flatpak_start.append("FROM_FLATPAK=true") - flatpak_start.append(f"WeModInfProtect={infpr}") + flatpak_start.append("--env=FROM_FLATPAK=true") + flatpak_start.append(f"--env=WeModInfProtect={infpr}") flatpak_start.append("--") # Isolate command from command args flatpak_cmd = flatpak_start + [sys.executable]