about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-07-03 14:35:33 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-07-03 14:35:33 +0300
commitf659b7f0819ae9bdc9fc626e321aca33ffbd9173 (patch)
treec0b550e27b4a89b1c50bdd30add037f6b4234a9a
parent7f749362a5a4ad31ae8e4e4aed49d30e2263aeef (diff)
downloadfungus-launcher-f659b7f0819ae9bdc9fc626e321aca33ffbd9173.tar.gz
fungus-launcher-f659b7f0819ae9bdc9fc626e321aca33ffbd9173.tar.xz
pass --verbose to run if needed
-rw-r--r--fungus/main_window.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/fungus/main_window.py b/fungus/main_window.py
index 2045bb7..179e94e 100644
--- a/fungus/main_window.py
+++ b/fungus/main_window.py
@@ -1,6 +1,7 @@
 #!/usr/bin/python3
 """Main window — game list, sidebar, search, play/kill/edit/delete, context menus."""
 
+import logging
 import os
 import shutil
 import subprocess
@@ -793,6 +794,8 @@ class Main(Gtk.ApplicationWindow):
         cwd = game_directory if game_directory and os.path.isdir(game_directory) else None
 
         cmd = [sys.executable, fungus_run, "--game", game.gameid]
+        if logging.root.level <= logging.DEBUG:
+            cmd.insert(2, "--verbose")
         if igpu:
             cmd.append("--igpu")