fix mount failure when path contains a space

This commit is contained in:
2025-07-29 15:16:34 -05:00
parent 6d0f2a6c36
commit 5f4b853764
2 changed files with 6 additions and 1 deletions

View File

@@ -11,6 +11,7 @@
### Changes from v2.0.6-release ### Changes from v2.0.6-release
* Fixed `.` and `..` incorrectly being reported as files in remote Linux mounts * Fixed `.` and `..` incorrectly being reported as files in remote Linux mounts
* Fixed UI mount failure when path contains a space
## v2.0.6-release ## v2.0.6-release

View File

@@ -728,7 +728,11 @@ auto handlers::launch_process(provider_type prov, std::string_view name,
args.insert(std::next(args.begin(), 2U), "start"); args.insert(std::next(args.begin(), 2U), "start");
args.insert(std::next(args.begin(), 3U), ""); args.insert(std::next(args.begin(), 3U), "");
args.insert(std::next(args.begin(), 4U), "/MIN"); args.insert(std::next(args.begin(), 4U), "/MIN");
args.insert(std::next(args.begin(), 5U), repertory_binary_); if (utils::string::contains(repertory_binary_, " ")) {
args.insert(std::next(args.begin(), 5U), "\"" + repertory_binary_ + "\"");
} else {
args.insert(std::next(args.begin(), 5U), repertory_binary_);
}
#else // !defined(_WIN32) #else // !defined(_WIN32)
args.insert(args.begin(), "-f"); args.insert(args.begin(), "-f");
args.insert(args.begin(), repertory_binary_); args.insert(args.begin(), repertory_binary_);