proton: Escape cwd path

This commit is contained in:
Andrew Eikum 2018-02-15 07:59:42 -06:00
parent 4a03a68b79
commit 34e8f02917

2
proton
View File

@ -212,7 +212,7 @@ if sys.argv[1] == "run":
if "PROTON_DUMP_DEBUG_COMMAND" in env: if "PROTON_DUMP_DEBUG_COMMAND" in env:
f = open("/tmp/proton_dbg_cmd", "w") f = open("/tmp/proton_dbg_cmd", "w")
f.write("#!/bin/bash\n\n") 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("SteamGameId=\"" + env["SteamGameId"] + "\" \\\n")
f.write("\tSteamAppId=\"" + env["SteamAppId"] + "\" \\\n") f.write("\tSteamAppId=\"" + env["SteamAppId"] + "\" \\\n")
f.write("\tPATH=\"" + env["PATH"] + "\" \\\n") f.write("\tPATH=\"" + env["PATH"] + "\" \\\n")