pub fn open_browser_with_options(
    browser: Browser,
    url: &str,
    options: &BrowserOptions
) -> Result<()>
Expand description

Opens the specified URL on the specific browser (if available) requested, while overriding the default options.

Return semantics are the same as for open.

Examples

use webbrowser::{open_browser_with_options, Browser, BrowserOptions};

if open_browser_with_options(Browser::Default, "http://github.com", BrowserOptions::new().with_suppress_output(false)).is_ok() {
    // ...
}