made it work for me on linux mint
+8
-3
src/main.rs
+8
-3
src/main.rs
···
93
93
let (_repos_arc, inodes_arc, sizes_arc, content_cache_arc) = fs.get_shared_state();
94
94
95
95
// mount
96
-
let options = vec![
96
+
let mut options = vec![
97
97
MountOption::RO,
98
98
MountOption::FSName("pdsfs".to_string()),
99
99
MountOption::AllowOther,
100
-
MountOption::CUSTOM("local".to_string()),
101
-
MountOption::CUSTOM("volname=pdsfs".to_string()),
102
100
];
103
101
102
+
// add macOS-specific options
103
+
#[cfg(target_os = "macos")]
104
+
{
105
+
options.push(MountOption::CUSTOM("local".to_string()));
106
+
options.push(MountOption::CUSTOM("volname=pdsfs".to_string()));
107
+
}
108
+
104
109
// Create session and get notifier for Finder refresh
105
110
let session = fuser::Session::new(fs, &mountpoint, &options).unwrap();
106
111
let notifier = session.notifier();
lgtm thanks!