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