We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b04827 commit 9a6d343Copy full SHA for 9a6d343
sketch-utils/src/opener.rs
@@ -13,10 +13,10 @@ pub enum OpenError {
13
#[cfg(target_os = "linux")]
14
const OPENER: &str = "xdg-open";
15
16
-#[cfg(target_os = "darwin")]
+#[cfg(target_os = "macos")]
17
const OPENER: &str = "open";
18
19
-#[cfg(any(target_os = "linux", target_os = "darwin"))]
+#[cfg(any(target_os = "linux", target_os = "macos"))]
20
pub fn open(path: impl AsRef<OsStr>) -> Result<()> {
21
let exit = Command::new(OPENER).arg(path.as_ref()).spawn()?.wait()?;
22
0 commit comments