From f5b838c9e6f42497d584b97cc3b5a8d10d040e9b Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Tue, 27 Feb 2018 11:00:55 -0600 Subject: [PATCH] proton: Also log during winepath operations --- proton | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proton b/proton index a43bcf65..f4ad1688 100755 --- a/proton +++ b/proton @@ -195,11 +195,11 @@ if not vr_runtime is None: j = { "runtime": [ "C:\\vrclient\\", "C:\\vrclient" ] } if not vr_config is None: - win_vr_config = subprocess.check_output([wine_path, "winepath", "-w", vr_config], env=env, stderr=open("/dev/null", "w")) + win_vr_config = subprocess.check_output([wine_path, "winepath", "-w", vr_config], env=env, stderr=lfile) j["config"] = [ win_vr_config.strip() ] if not vr_log is None: - win_vr_log = subprocess.check_output([wine_path, "winepath", "-w", vr_log], env=env, stderr=open("/dev/null", "w")) + win_vr_log = subprocess.check_output([wine_path, "winepath", "-w", vr_log], env=env, stderr=lfile) j["log"] = [ win_vr_log.strip() ] j["version"] = 1 @@ -295,11 +295,11 @@ if sys.argv[1] == "run": run_wine([wine_path] + sys.argv[2:]) elif sys.argv[1] == "getcompatpath": #linux -> windows path - path = subprocess.check_output([wine_path, "winepath", "-w", sys.argv[2]], env=env, stderr=open("/dev/null", "w")) + path = subprocess.check_output([wine_path, "winepath", "-w", sys.argv[2]], env=env, stderr=lfile) sys.stdout.write(path) elif sys.argv[1] == "getnativepath": #windows -> linux path - path = subprocess.check_output([wine_path, "winepath", sys.argv[2]], env=env, stderr=open("/dev/null", "w")) + path = subprocess.check_output([wine_path, "winepath", sys.argv[2]], env=env, stderr=lfile) sys.stdout.write(path) else: log("Need a verb.")