fix mount failure when path contains a space
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
### Changes from v2.0.6-release
|
||||
|
||||
* Fixed `.` and `..` incorrectly being reported as files in remote Linux mounts
|
||||
* Fixed UI mount failure when path contains a space
|
||||
|
||||
## v2.0.6-release
|
||||
|
||||
|
@@ -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(), 3U), "");
|
||||
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)
|
||||
args.insert(args.begin(), "-f");
|
||||
args.insert(args.begin(), repertory_binary_);
|
||||
|
Reference in New Issue
Block a user