Skip to content

Commit 3035a39

Browse files
committed
fix: make it compile on macos
1 parent 21ef137 commit 3035a39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pub fn open_application(path: impl AsRef<Path>) {
118118
#[cfg(target_os = "macos")]
119119
{
120120
NSWorkspace::new().openURL(&NSURL::fileURLWithPath(
121-
&objc2_foundation::NSString::from_str(path),
121+
&objc2_foundation::NSString::from_str(&path.to_string_lossy()),
122122
));
123123
}
124124

0 commit comments

Comments
 (0)