mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-02-25 21:11:14 +03:00
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.
This commit is contained in:
parent
234edf70f5
commit
17294f3b4a
3
proton
3
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user