Skip to content

Commit

Permalink
Merge branch 'krsh732-main' PR #64
Browse files Browse the repository at this point in the history
  • Loading branch information
amodm committed Jan 30, 2023
2 parents 5f5278a + 0a8ba99 commit 26253d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ fn try_xdg(options: &BrowserOptions, url: &str) -> Result<()> {
.map_err(|_| Error::new(ErrorKind::NotFound, "invalid default browser name"))?
.trim()
.to_owned();
if browser_name.is_empty() {
return Err(Error::new(ErrorKind::NotFound, "no default xdg browser"));
}
trace!("found xdg browser: {:?}", &browser_name);

// search for the config file corresponding to this browser name
Expand Down

0 comments on commit 26253d6

Please sign in to comment.