Skip to main content

open_browser

Function open_browser 

Source
pub fn open_browser(u: &str) -> bool
Expand description

Opens u in the default browser (open on macOS, xdg-open on Linux and BSDs, the URL handler on Windows). No shell is involved. Returns whether it worked.