From 93c9b4458bfcd5f2e0719f37d2fa20bf2b1e52a4 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Fri, 12 Apr 2024 11:22:01 -0700 Subject: [PATCH] Add Flatpak paths --- umu/umu_plugins.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/umu/umu_plugins.py b/umu/umu_plugins.py index f23e2cd1a..d7ce815ad 100644 --- a/umu/umu_plugins.py +++ b/umu/umu_plugins.py @@ -5,6 +5,7 @@ from argparse import Namespace from shutil import which from umu_log import log +from umu_consts import FLATPAK_PATH def set_env_toml( @@ -134,8 +135,12 @@ def enable_steam_game_drive(env: Dict[str, str]) -> Dict[str, str]: # Hard code for now because these paths seem to be pretty standard # This way we avoid shelling to ldconfig - paths.add("/usr/lib") - paths.add("/usr/lib32") + if FLATPAK_PATH: + paths.add("/app/lib") + paths.add("/app/lib32") + else: + paths.add("/usr/lib") + paths.add("/usr/lib32") env["STEAM_RUNTIME_LIBRARY_PATH"] = ":".join(list(paths)) return env