Skip to main content

open_url

Function open_url 

Source
pub fn open_url(url: &str) -> Result<()>
Expand description

Opens a web page in the browser. Only http and https are accepted, so a bad URL cannot end up running a program or opening a file instead.

On Windows this does not go through cmd, as open_with_system does: cmd would take the & between a query’s parameters as the start of a new command.