diff --git a/src/main.rs b/src/main.rs index 39b52cb58..215aa67ca 100644 --- a/src/main.rs +++ b/src/main.rs @@ -101,7 +101,10 @@ fn main() { ipc::set_password(args[1].to_owned()).unwrap(); } return; - } else if cfg!(target_os = "macos") && args[0] == "--daemon" { + } + + #[cfg(target_os = "macos")] + if args[0] == "--daemon" { log::info!("start --daemon"); crate::platform::start_daemon(); return;