diff --git a/src/server.rs b/src/server.rs index d0c28a9ff..70e254fb2 100644 --- a/src/server.rs +++ b/src/server.rs @@ -326,6 +326,7 @@ pub async fn start_server(is_server: bool, _tray: bool) { } } +#[cfg(target_os = "macos")] async fn sync_and_watch_config_dir() { if crate::username() == "root" { return; @@ -381,6 +382,7 @@ async fn sync_and_watch_config_dir() { } } +#[cfg(target_os = "macos")] async fn sync_config_to_user(conn: &mut ConnectionTmpl) -> ResultType<()> { allow_err!( conn.send(&Data::SyncConfigToUserReq { @@ -402,6 +404,7 @@ async fn sync_config_to_user(conn: &mut ConnectionTmpl) -> Res Ok(()) } +#[cfg(target_os = "macos")] async fn sync_config_to_root( conn: &mut ConnectionTmpl, from: PathBuf,