proton: Dump header with proton version info in logs

This commit is contained in:
Andrew Eikum 2018-12-20 16:00:01 -06:00
parent cb93dcdd7d
commit 1b0173de22

7
proton
View File

@ -238,6 +238,13 @@ if "SteamGameId" in env:
if os.path.exists(lfile_path): if os.path.exists(lfile_path):
os.remove(lfile_path) os.remove(lfile_path)
lfile = open(lfile_path, "w+") lfile = open(lfile_path, "w+")
lfile.write("======================\n")
with open(basedir + "/version", "r") as f:
lfile.write("Proton: " + f.readline().strip() + "\n")
lfile.write("SteamGameId: " + env["SteamGameId"] + "\n")
lfile.write("Command: " + str(sys.argv[2:]) + "\n")
lfile.write("======================\n")
lfile.flush()
else: else:
env["WINEDEBUG"] = "-all" env["WINEDEBUG"] = "-all"