Skip to content

Commit

Permalink
sketch-utils/opener: fix mac open
Browse files Browse the repository at this point in the history
  • Loading branch information
danieledapo committed Aug 30, 2024
1 parent 0b04827 commit 9a6d343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sketch-utils/src/opener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ pub enum OpenError {
#[cfg(target_os = "linux")]
const OPENER: &str = "xdg-open";

#[cfg(target_os = "darwin")]
#[cfg(target_os = "macos")]
const OPENER: &str = "open";

#[cfg(any(target_os = "linux", target_os = "darwin"))]
#[cfg(any(target_os = "linux", target_os = "macos"))]
pub fn open(path: impl AsRef<OsStr>) -> Result<()> {
let exit = Command::new(OPENER).arg(path.as_ref()).spawn()?.wait()?;

Expand Down

0 comments on commit 9a6d343

Please sign in to comment.