fix(game-env): turn off Proton's tabtip unless the Steam keyboard is enabled (#2595)

* fix(game-env): turn off Proton's tabtip unless the Steam keyboard is enabled

Proton's tabtip only opens Steam's keyboard with SteamDeck=1, but it always
runs UI Automation queries inside the focused game, and those calls crash
games that answer them (Godot 4.5 AccessKit). Game launches now add
tabtip.exe=d unless SteamDeck=1 or the user's overrides name tabtip.

* fix(game-env): match WINEDLLOVERRIDES modules split by spaces and tabs

* fix(game-env): count only tabtip.exe entries with a load order as the user's own setting

* fix(game-env): count *tabtip.exe and tabtip.exe.dll overrides as the user's own setting

* test(game-env): cover keyboard overrides during sync fallback
This commit is contained in:
MaxsTechReview authored and GitHub committed 2026-11-15 02:48:50 -05:00
1 parent fdf3d98c36
commit 7254a88391
4 files changed
+107 -19

No files matched your search

@@ -188,6 +188,21 @@ def little_nightmares_threads(game):
return {"PROTONFIXES_DISABLE": "1"}, [], "Little Nightmares: umu-protonfixes off (its -onethread puts the game and renderer on one thread)"
def names_module(overrides, names):
for entry in (overrides or "").split(";"):
if "=" in entry and names & {re.sub(r"^\*|\.dll$", "", name.lower()) for name in re.split(r"[, \t]", entry.split("=", 1)[0])}:
return True
return False
def keyboard_helper_off(env):
if env.get("SteamDeck") == "1" or names_module(env.get("WINEDLLOVERRIDES"), {"tabtip.exe"}):
return None
own = env.get("WINEDLLOVERRIDES")
env["WINEDLLOVERRIDES"] = own + ";tabtip.exe=d" if own else "tabtip.exe=d"
return "tabtip.exe off (it only opens Steam's keyboard with SteamDeck=1, and its UI Automation calls crash games)"
def skip_red_launcher(command):
if len(command) > 2 and os.path.basename(command[2]).lower() == "redprelauncher.exe":
game = os.path.join(os.path.dirname(command[2]), "bin", "x64", "Cyberpunk2077.exe")
@@ -1352,6 +1367,9 @@ def main():
if "vblank_mode" in config.get("shared", {}):
fixes.pop("vblank_mode", None)
env = apply_config(env, launch_config, app_id, fixes)
note = keyboard_helper_off(env)
if note:
print("droiddeck-game-env: " + note, file=sys.stderr)
else:
path = Path.home() / ".config/droiddeck/game-environment.json"
try: