Skip to content

Latest commit

 

History

History
98 lines (52 loc) · 2.95 KB

CHANGELOG.md

File metadata and controls

98 lines (52 loc) · 2.95 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased]

[0.7.1] - 2024-05-17

Fixed

  • On Linux, the dbus crate is now only pulled in when enabling the reveal feature (as was the case prior to opener v0.7.0).
  • Fixed a Cargo error when compiling opener using versions of Rust prior to 1.71.

[0.7.0] - 2024-03-22

Added

  • "dbus-vendored" feature, which is enabled by default to match current behavior. This just forwards to the dbus crate's "vendored" feature. Disable it to link dynamically to dbus instead of statically.

[0.6.1] - 2023-04-14

[0.6.0] - 2023-03-27

Added

  • reveal() function, which opens the system's file explorer with the specified file or directory selected. It requires the "reveal" feature to be enabled.

Changed

  • The error message when an executable is missing or otherwise fails to start is now more helpful due to the addition of the OpenError::Spawn variant, which is returned when spawning command(s) fails, and includes the name of the command(s). Before, these errors would be returned as OpenError::Io, which tend to be vague.
  • OpenError is now marked #[non_exhaustive].

Fixed

  • Path handling on Windows has been improved. / separators in relative paths are now accepted.
  • Opening web links on WSL with wslview now works properly.

[0.5.2] - 2023-01-29

Fixed

  • License files are now properly included in the published crate.

[0.5.1] - 2023-01-28

Changed

  • Update xdg-open.

[0.5.0] - 2021-06-11

Added

  • open_browser(), which uses the $BROWSER environment variable before falling back to open().
  • WSL-specific implementation. Previously, WSL used the same implementation as Linux. Now the strategy on WSL is to use the system's wslview command from wslu if available, falling back to the system xdg-open, if available.

Changed

  • On Linux (non-WSL), the system xdg-open is now used if present. Otherwise, the bundled version is used, as before.
  • Avoid blocking the thread on Linux and WSL.

Removed

  • impl From<io::Error> for OpenError.

[0.4.1] - 2019-09-30

Changed

  • Update xdg-open.

[0.4.0] - 2019-05-02

Added

  • OpenError now implements std::error::Error.

Changed

  • OpenError's failure::Fail impl was removed from this crate, but the failure crate provides a blanket impl of failure::Fail for types implementing std::error::Error, so this shouldn't break anything.

[0.3.0] - 2018-08-18

Added

  • stderr field to OpenError::ExitStatus variant, which captures anything the failed process wrote to stderr.

[0.2.0] - 2018-08-08

Removed

  • The open_sys function, which was erroneously pub on non-Windows builds.

[0.1.0] - 2018-08-08

  • Initial release.