From 34e8f02917fed3934385f166b958116db8bcac24 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Thu, 15 Feb 2018 07:59:42 -0600 Subject: [PATCH] proton: Escape cwd path --- proton | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proton b/proton index b40738bc..128ffb32 100755 --- a/proton +++ b/proton @@ -212,7 +212,7 @@ if sys.argv[1] == "run": if "PROTON_DUMP_DEBUG_COMMAND" in env: f = open("/tmp/proton_dbg_cmd", "w") f.write("#!/bin/bash\n\n") - f.write("cd " + os.getcwd() + "\n") + f.write("cd \"" + os.getcwd() + "\"\n") f.write("SteamGameId=\"" + env["SteamGameId"] + "\" \\\n") f.write("\tSteamAppId=\"" + env["SteamAppId"] + "\" \\\n") f.write("\tPATH=\"" + env["PATH"] + "\" \\\n")