From 1b0173de22a8ac636ad928e254f1a9d406633388 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Thu, 20 Dec 2018 16:00:01 -0600 Subject: [PATCH] proton: Dump header with proton version info in logs --- proton | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/proton b/proton index d56a5ec4..91da8221 100755 --- a/proton +++ b/proton @@ -238,6 +238,13 @@ if "SteamGameId" in env: if os.path.exists(lfile_path): os.remove(lfile_path) 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: env["WINEDEBUG"] = "-all"