mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
Strip quotes out of the working directory path
This commit is contained in:
@@ -664,6 +664,12 @@ namespace proc {
|
||||
|
||||
if (working_dir) {
|
||||
ctx.working_dir = parse_env_val(this_env, *working_dir);
|
||||
#ifdef _WIN32
|
||||
// The working directory, unlike the command itself, should not be quoted
|
||||
// when it contains spaces. Unlike POSIX, Windows forbids quotes in paths,
|
||||
// so we can safely strip them all out here to avoid confusing the user.
|
||||
boost::erase_all(ctx.working_dir, "\"");
|
||||
#endif
|
||||
}
|
||||
|
||||
if (image_path) {
|
||||
|
||||
Reference in New Issue
Block a user