mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-03 17:41:58 +02:00
fix(ui): Started from Steam, the app runs without Steam's overlay (Qt aborted) and stays in the foreground, so Steam Input gives it the controller
This commit is contained in:
1 parent
50b50cb726
commit
59c746b3fe
2 files changed
+13
No files matched your search
@@ -20,6 +20,14 @@ import tempfile
|
||||
import threading
|
||||
import time
|
||||
|
||||
# Started from Steam (a non-Steam game, so Steam Input hands it the
|
||||
# controller): Steam preloads its overlay into every game, and Qt aborts with
|
||||
# it loaded. Start again without it, before Qt is imported.
|
||||
if "gameoverlayrenderer" in os.environ.get("LD_PRELOAD", ""):
|
||||
os.environ["LD_PRELOAD"] = ":".join(p for p in os.environ["LD_PRELOAD"].split(":")
|
||||
if p and "gameoverlayrenderer" not in p)
|
||||
os.execv(sys.executable, [sys.executable] + sys.argv)
|
||||
|
||||
HERE = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user