Skip to main content

open_browser

Function open_browser 

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

Hand a URL to the OS so the user’s default browser opens it.

Validates the URL is parseable before handing it off — we never want a malformed string reaching xdg-open/open/the Windows shell.