From 0b5e71fe916e92ef9ecf7de91ca43371c4bd6d25 Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Tue, 29 Jul 2025 07:53:45 -0700 Subject: wording and layout tweaks (#125) * wording and layout tweaks * red in remove button * reorganize frontend components * fix ld preload permissions issue for decky 3.1.10 * bump ver --- main.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 44d02a4..4eb769d 100644 --- a/main.py +++ b/main.py @@ -94,12 +94,17 @@ class Plugin: def _setup_flatpak_compatibility(self, fgmod_path): """Set up Flatpak compatibility if needed""" try: + # Create a clean environment to avoid PyInstaller issues + clean_env = os.environ.copy() + clean_env["LD_LIBRARY_PATH"] = "" + # Check if Flatpak Steam is installed flatpak_check = subprocess.run( ["flatpak", "list"], capture_output=True, text=True, - check=False + check=False, + env=clean_env ) if flatpak_check.returncode == 0 and "com.valvesoftware.Steam" in flatpak_check.stdout: @@ -109,7 +114,7 @@ class Plugin: "flatpak", "override", "--user", f"--filesystem={fgmod_path}", "com.valvesoftware.Steam" - ], check=False) + ], check=False, env=clean_env) decky.logger.info("Added Flatpak filesystem access") return True @@ -153,11 +158,16 @@ class Plugin: str(optiscaler_archive) ] + # Create a clean environment to avoid PyInstaller issues + clean_env = os.environ.copy() + clean_env["LD_LIBRARY_PATH"] = "" + extract_result = subprocess.run( extract_cmd, capture_output=True, text=True, - check=False + check=False, + env=clean_env ) if extract_result.returncode != 0: -- cgit v1.2.3