aboutsummaryrefslogtreecommitdiff
path: root/libs/basic_games
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-03-17 21:41:31 -0500
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-03-17 21:41:31 -0500
commit412eda0369cb89c8fed871d46227bbe671c4fd68 (patch)
tree4a85a660410635e55e711544b163ea24e1bbc114 /libs/basic_games
parent2efc7e6124ef814ac9abd874bff0dc6b3e6768d0 (diff)
Fix Steam game mode: strip LD_PRELOAD, robust looksValid(), restore env for games
Steam injects 32-bit gameoverlayrenderer.so via LD_PRELOAD which causes "wrong ELF class" errors for 64-bit Qt6 apps. Save and clear LD_PRELOAD in both launcher and AppRun scripts, restore it in ProtonLauncher for game processes. Also hardens looksValid() with QFileInfo::exists() for absolute paths (QDir::exists() has edge cases with relative subdirectory paths), adds case-insensitive directory walking fallback, and adds debug logging to both looksValid() and detectGame(). Adds ~/.steam/debian-installation to Python steam_utils.py candidates. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'libs/basic_games')
-rw-r--r--libs/basic_games/steam_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/basic_games/steam_utils.py b/libs/basic_games/steam_utils.py
index f61f392..3babd55 100644
--- a/libs/basic_games/steam_utils.py
+++ b/libs/basic_games/steam_utils.py
@@ -164,6 +164,7 @@ def find_steam_path() -> Path | None:
# Linux: check common Steam install locations.
for candidate in (
Path.home() / ".local" / "share" / "Steam",
+ Path.home() / ".steam" / "debian-installation",
Path.home() / ".steam" / "steam",
Path.home()
/ ".var"