14 releases

new 0.7.1 May 18, 2024
0.7.0 Mar 23, 2024
0.6.1 Apr 14, 2023
0.6.0 Mar 27, 2023
0.3.2 Nov 15, 2018

#28 in Operating systems

Download history 74962/week @ 2024-01-26 86864/week @ 2024-02-02 87218/week @ 2024-02-09 93766/week @ 2024-02-16 95700/week @ 2024-02-23 106664/week @ 2024-03-01 102791/week @ 2024-03-08 104779/week @ 2024-03-15 101232/week @ 2024-03-22 94165/week @ 2024-03-29 92983/week @ 2024-04-05 93821/week @ 2024-04-12 99022/week @ 2024-04-19 97314/week @ 2024-04-26 95418/week @ 2024-05-03 76429/week @ 2024-05-10

383,632 downloads per month
Used in 365 crates (65 directly)


570 lines


This crate provides the ability to open a file or link with the default program configured on the system.

See the docs for more details:



Licensed under either of

at your option.

Third party software



Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


This crate provides the open function, which opens a file or link with the default program configured on the system:

// open a website

// open a file

An 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.

Crate features

  • reveal - Enables usage of the reveal function. On Linux this will pull in the dbus crate. If the dbus-vendored feature is enabled (which it is by default), dbus will use static linking. Otherwise it will be dynamically linked, and some system dependencies will be required to build dbus and also to run any built binaries. Refer to the dbus docs for the specifics.
  • dbus-vendored - See the reveal feature.


~96K SLoC