Skip to content

Commit 210ec6e

Browse files
author
Oliver Schneider
committed
windows: start is a cmd command, not an executable
1 parent 8db67f5 commit 210ec6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub fn that(path: &str) -> io::Result<ExitStatus> {
3838

3939
#[cfg(target_os = "windows")]
4040
pub fn that(path: &str) -> io::Result<ExitStatus> {
41-
match Command::new("start").arg(path).spawn() {
41+
match Command::new("cmd").arg("/C").arg("start").arg(path).spawn() {
4242
Ok(mut child) => child.wait(),
4343
Err(err) => Err(err),
4444
}
@@ -50,4 +50,4 @@ pub fn that(path: &str) -> io::Result<ExitStatus> {
5050
Ok(mut child) => child.wait(),
5151
Err(err) => Err(err),
5252
}
53-
}
53+
}

0 commit comments

Comments
 (0)