improve mac service
This commit is contained in:
parent
33c6095eca
commit
bbe902d92e
8 changed files with 68 additions and 35 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue