From 626c78c266472d3fa79faa06049d94e75e7bf88b Mon Sep 17 00:00:00 2001 From: MiTHRAL Date: Mon, 24 Aug 2026 00:34:53 -0400 Subject: [PATCH] fix truncated LaunchOptions without %command% + diagnose VDF 30-line window - install.sh: also fix when LaunchOptions has version=n,b but missing %command% (truncated WINEDLLOVERRIDES="version=n,b" WINEDLLOVERRIDES=" case from previous malformed VDF) - diagnose: use 30-line ahead window for Apps->1274570, show all 3 users OK --- scripts/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index a790b76..1e41034 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -167,8 +167,8 @@ while i < len(lines)-1: if end is None: i=j+1; continue if found_idx is not None: if 'version=n,b' in found and 'WINEDLLOVERRIDES' in found: - if '\\\\\"version=n,b\\\\\"' not in found: - lines[found_idx]='\t'*6+'\"LaunchOptions\"\t\t\"'+LAUNCH+'\"\n'; print(f'[*] {lc}: fixed escaping'); patched+=1 + if '\\\\\"version=n,b\\\\\"' not in found or '%command%' not in found: + lines[found_idx]='\t'*6+'\"LaunchOptions\"\t\t\"'+LAUNCH+'\"\n'; print(f'[*] {lc}: fixed escaping/truncated'); patched+=1 else: import re as _re m=_re.search(r'\"LaunchOptions\"\s+\"([^\"]*)\"', found)