|
|
@ -264,8 +264,8 @@ impl Scope {
|
|
|
|
// The prevention of argument escaping is handled by the usage of std::process::Command::arg by
|
|
|
|
// The prevention of argument escaping is handled by the usage of std::process::Command::arg by
|
|
|
|
// the `open` dependency. This behavior should be re-confirmed during upgrades of `open`.
|
|
|
|
// the `open` dependency. This behavior should be re-confirmed during upgrades of `open`.
|
|
|
|
match with.map(Program::name) {
|
|
|
|
match with.map(Program::name) {
|
|
|
|
Some(program) => ::open::with(path, program),
|
|
|
|
Some(program) => ::open::with_detached(path, program),
|
|
|
|
None => ::open::that(path),
|
|
|
|
None => ::open::that_detached(path),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.map_err(Into::into)
|
|
|
|
.map_err(Into::into)
|
|
|
|
}
|
|
|
|
}
|
|
|
|