Spaces in Windows paths resulted in improper DOS command. Fix designed
according to the above-referenced StackOverflow post.
This commit is contained in:
John Rinehart 2017-01-31 23:55:16 -05:00
parent c728bf52b8
commit 2e1c86c0c7

View File

@ -27,7 +27,7 @@ function open_browser_window(filename::AbstractString)
return run(`xdg-open $(filename)`)
end
@static if is_windows()
return run(`$(ENV["COMSPEC"]) /c start $(filename)`)
return run(`$(ENV["COMSPEC"]) /c start "" "$(filename)"`)
end
warn("Unknown OS... cannot open browser window.")
end