proton: Log the kernel version.

This commit is contained in:
Arkadiusz Hiler 2021-10-11 19:26:33 +03:00
parent b39c95a7e1
commit 06c9f221ec

8
proton
View file

@ -1062,6 +1062,14 @@ class Session:
self.try_log_slr_versions()
try:
uname = os.uname()
kernel_version = f"{uname.sysname} {uname.release} {uname.version} {uname.machine}"
except OSError:
kernel_version = "unknown"
self.log_file.write(f"Kernel: {kernel_version}\n")
#dump some important variables into the log header
for var in ["WINEDLLOVERRIDES", "WINEDEBUG"]:
if var in os.environ: