Skip to content

Commit

Permalink
Wrap provided app in quotes on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
xalbd committed Nov 22, 2023
1 parent a33caba commit e1b74d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn with_command<T: AsRef<OsStr>>(path: T, app: impl Into<String>) -> Command
cmd.arg("/c")
.arg("start")
.raw_arg("\"\"")
.raw_arg(app.into())
.raw_arg(wrap_in_quotes(app.into()))
.raw_arg(wrap_in_quotes(path))
.creation_flags(CREATE_NO_WINDOW);
cmd
Expand Down

0 comments on commit e1b74d8

Please sign in to comment.