Skip to content

Commit 07b246c

Browse files
author
Bryan A. Jones
committed
docs: point to webbrowser crate for users that seek this specific functionality.
1 parent 1c4a952 commit 07b246c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

1719
Add this to your Cargo.toml

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
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
//!

0 commit comments

Comments
 (0)