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.
- On Linux, the
dbus
crate is now only pulled in when enabling thereveal
feature (as was the case prior toopener
v0.7.0). - Fixed a Cargo error when compiling
opener
using versions of Rust prior to 1.71.
- "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.
reveal()
function, which opens the system's file explorer with the specified file or directory selected. It requires the "reveal" feature to be enabled.
- 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 asOpenError::Io
, which tend to be vague. OpenError
is now marked#[non_exhaustive]
.
- Path handling on Windows has been improved.
/
separators in relative paths are now accepted. - Opening web links on WSL with
wslview
now works properly.
- License files are now properly included in the published crate.
- Update
xdg-open
.
open_browser()
, which uses the$BROWSER
environment variable before falling back toopen()
.- WSL-specific implementation. Previously, WSL used the same implementation as Linux. Now the strategy on WSL is to use the system's
wslview
command fromwslu
if available, falling back to the systemxdg-open
, if available.
- 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.
impl From<io::Error> for OpenError
.
- Update
xdg-open
.
OpenError
now implementsstd::error::Error
.
OpenError
'sfailure::Fail
impl was removed from this crate, but the failure crate provides a blanket impl offailure::Fail
for types implementingstd::error::Error
, so this shouldn't break anything.
stderr
field toOpenError::ExitStatus
variant, which captures anything the failed process wrote to stderr.
- The
open_sys
function, which was erroneously pub on non-Windows builds.
- Initial release.