This crate provides the
open function, which opens a file or link with the default program
configured on the system:
// open a website opener::open("https://www.rust-lang.org")?; // open a file opener::open("../Cargo.toml")?;
open_browser function is also provided, for when you intend on opening a file or link in a
browser, specifically. This function works like the
open function, but explicitly allows
overriding the browser launched by setting the
$BROWSER environment variable.
An error type representing the failure to open a path. Possibly returned by the
Opens a file or link with the system default program.
Opens a file or link with the system default program, using the