Skip to content

Commit

Permalink
Merge pull request #1656 from johannst/switch-to-opener-crate
Browse files Browse the repository at this point in the history
switch from open to opener
  • Loading branch information
ehuss authored Sep 26, 2021
2 parents a306da3 + ff4b8e7 commit f5598b2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
20 changes: 7 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ handlebars = "4.0"
lazy_static = "1.0"
log = "0.4"
memchr = "2.0"
open = "2.0"
opener = "0.5"
pulldown-cmark = "0.7.0"
regex = "1.0.0"
serde = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ fn get_book_dir(args: &ArgMatches) -> PathBuf {

fn open<P: AsRef<OsStr>>(path: P) {
info!("Opening web browser");
if let Err(e) = open::that(path) {
if let Err(e) = opener::open(path) {
error!("Error opening web browser: {}", e);
}
}

0 comments on commit f5598b2

Please sign in to comment.