about summary refs log tree commit diff stats
path: root/fungus/game_launcher.py
diff options
context:
space:
mode:
Diffstat (limited to 'fungus/game_launcher.py')
-rw-r--r--fungus/game_launcher.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/fungus/game_launcher.py b/fungus/game_launcher.py
index 68efca6..b3b2fdc 100644
--- a/fungus/game_launcher.py
+++ b/fungus/game_launcher.py
@@ -6,6 +6,7 @@ The GTK adapter lives in ``fungus.run_manager``.
 
 from __future__ import annotations
 
+import logging
 import os
 import re
 import signal
@@ -64,7 +65,8 @@ class GameLauncher:
     SANDBOX_ENV_KEYS: tuple[str, ...] = (
         "DRI_PRIME", "__NV_PRIME_RENDER_OFFLOAD",
         "__VK_LAYER_NV_OPTIMUS", "__GLX_VENDOR_LIBRARY_NAME",
-        "GAMEID", "PROTONFIXES_DISABLE", "WINEPREFIX",
+        "GAMEID", "PROTONFIXES_DISABLE", "WINEPREFIX", "WINEDLLOVERRIDES",
+        "UMU_LOG", "PROTON_LOG"
     )
 
     # Predefined bwrap mount entries, grouped by type.
@@ -359,6 +361,10 @@ class GameLauncher:
         self.start_time = time.time()
         os.environ["UMU_RUNTIME_UPDATE"] = "0"
 
+        if logging.root.level <= logging.DEBUG:
+            os.environ["UMU_LOG"] = "debug"
+            os.environ["PROTON_LOG"] = "1"
+
         if (
             "umu" not in os.environ.get("GAMEID", "")
             and not (os.environ.get("GAMEID", "").isnumeric())
@@ -410,6 +416,9 @@ class GameLauncher:
             self.game, valid_dirs, self.env_from_file,
         )
 
+        log.info(f"final bwrap command: {bwrap_cmd}")
+        log.info(f"sandbox environment: {sandbox_env}")
+
         # ── Launch ──────────────────────────────────────────────────
         run_env = os.environ.copy()
         run_env.update(sandbox_env)
@@ -581,9 +590,7 @@ class GameLauncher:
         if not clean_line:
             return
 
-        log.debug("_on_io_line: [%s] %s", "err" if is_stderr else "out", clean_line)
-
-
+        # log.debug("_on_io_line: [%s] %s", "err" if is_stderr else "out", clean_line)
 
         # Dispatch to callback
         if self._on_output_line: