From a631235c285b5f48ce63a52cbf7d70f51439db06 Mon Sep 17 00:00:00 2001 From: Reiner Dolp Date: Sun, 17 Sep 2017 15:53:26 +0100 Subject: [PATCH] fix filenames with spaces on windows --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f69bc17..45ee21c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,7 +59,7 @@ pub fn that+Sized>(path: T) -> io::Result { #[cfg(target_os = "windows")] pub fn that+Sized>(path: T) -> io::Result { let mut cmd = Command::new("cmd"); - cmd.arg("/C").arg("start"); + cmd.arg("/C").arg("start").arg(""); if let Some(s) = path.as_ref().to_str() { cmd.arg(s.replace("&", "^&")); } else {