Skip to content

Commit

Permalink
Add Flatpak paths
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Apr 12, 2024
1 parent 6a674ef commit 93c9b44
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions umu/umu_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 93c9b44

Please sign in to comment.