From 07ab8e508c8547d20fcd0c62264b1236eb2b7e05 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 9 Apr 2024 19:48:58 +0800 Subject: [PATCH] fix me --- src/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.rs b/src/common.rs index e74302031..39771c541 100644 --- a/src/common.rs +++ b/src/common.rs @@ -1244,7 +1244,7 @@ pub async fn get_next_nonkeyexchange_msg( #[cfg(not(any(target_os = "android", target_os = "ios")))] pub fn check_process(arg: &str, mut same_uid: bool) -> bool { #[cfg(target_os = "macos")] - if !crate::platform::is_root() { + if !crate::platform::is_root() && !same_uid { log::warn!("Can not get other process's command line arguments on macos without root"); same_uid = true; }