From 7ef0476c2bcf657a167af571884810e359f7db34 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Thu, 8 Feb 2018 09:20:38 -0600 Subject: [PATCH] proton: Dump stdout to /dev/null by default --- proton | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proton b/proton index 3425e8d6..fd581f3f 100755 --- a/proton +++ b/proton @@ -59,12 +59,12 @@ lfile_path = None #env["WINEDEBUG"] = "+tid,+seh,+steamclient" #lfile_path = env["HOME"] + "/steam-" + env["SteamGameId"] + ".log" -if not lfile_path is None: +if lfile_path is None: + lfile = open("/dev/null", "w") +else: if os.path.exists(lfile_path): os.remove(lfile_path) lfile = open(lfile_path, "w") -else: - lfile = None if "LD_LIBRARY_PATH" in os.environ: env["LD_LIBRARY_PATH"] = libdir + ":" + env["LD_LIBRARY_PATH"]