improve mac service

This commit is contained in:
rustdesk
2022-04-27 19:21:38 +08:00
parent 33c6095eca
commit bbe902d92e
8 changed files with 68 additions and 35 deletions

View File

@@ -329,7 +329,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" {
if crate::platform::is_root() {
return;
}