File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ $ start <path-or-url>
1212$ xdg-open < path-or-url> || gio open < path-or-url> || gnome-open < path-or-url> || kde-open < path-or-url> || wslview < path-or-url>
1313```
1414
15+ To open a web browser, see the [ webbrowser] ( https://docs.rs/webbrowser ) crate, which offers functionality for that specific case.
16+
1517# Library Usage
1618
1719Add this to your Cargo.toml
Original file line number Diff line number Diff line change 11//! Use this library to open a given path or URL in some application, obeying the current user's desktop configuration.
22//!
3- //! It is expected that `http:` and `https:` URLs will open in a web browser, although desktop configuration may override this.
3+ //! It is expected that `http:` and `https:` URLs will open in a web browser, although the desktop configuration may override this.
44//! The choice of application for opening other path types is highly system-dependent.
5+ //!
6+ //! To always open a web browser, see the [webbrowser](https://docs.rs/webbrowser) crate, which offers functionality for that specific case.
57//!
68//! # Usage
79//!
You can’t perform that action at this time.
0 commit comments