From 17294f3b4a880184e0562a9ab25479ab6b1d1b11 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Mon, 6 Aug 2018 08:06:16 -0500 Subject: [PATCH] proton: Add waitforexit verb The Steam client only sets critical environment variables for the game process itself, not for getcompatpath etc. This verb lets the Steam client wait for the prefix to shut down so it can restart the prefix with the variables set. Required to avoid duplicate controllers when controller config support is enabled, for example. --- proton | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proton b/proton index 13e08d8e..0c81811b 100755 --- a/proton +++ b/proton @@ -466,6 +466,9 @@ elif sys.argv[1] == "getnativepath": #windows -> linux path path = subprocess.check_output([wine_path, "winepath", sys.argv[2]], env=env, stderr=lfile) sys.stdout.write(path) +elif sys.argv[1] == "waitforexit": + #wait for wineserver to shut down + run_wine([bindir + "/wineserver", "-w"]) else: log("Need a verb.") sys.exit(1)