Skip to content

Commit a262012

Browse files
authored
Merge pull request #5 from wariuni/fix-bug-on-windows
Fix URL opening on windows
2 parents f663a7d + c16240a commit a262012

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ fn open_on_macos(browser: Browser, url: &str) -> Result<Output> {
100100
}
101101
}
102102

103-
/// Deal with opening of browsers on Windows, using `start link` command
103+
/// Deal with opening of browsers on Windows, using `start` command
104104
fn open_on_windows(browser: Browser, url: &str) -> Result<Output> {
105105
match browser {
106-
Browser::Default => Command::new("start").arg("link").arg(url).output(),
106+
Browser::Default => Command::new("cmd").arg("/C").arg("start").arg(url).output(),
107107
_ => Err(Error::new(
108108
ErrorKind::NotFound,
109109
"Only the default browser is supported on this platform right now"

0 commit comments

Comments
 (0)