mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-03-15 06:50:27 +03:00
proton: Log the kernel version.
This commit is contained in:
parent
c3815897b8
commit
1ee2544f6b
8
proton
8
proton
@ -1079,6 +1079,14 @@ class Session:
|
|||||||
|
|
||||||
self.try_log_slr_versions()
|
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
|
#dump some important variables into the log header
|
||||||
for var in ["WINEDLLOVERRIDES", "WINEDEBUG"]:
|
for var in ["WINEDLLOVERRIDES", "WINEDEBUG"]:
|
||||||
if var in os.environ:
|
if var in os.environ:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user