From e66ccdca9dff63b3bd173a0ff363417060ccdc95 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 26 Apr 2022 14:09:47 +0800 Subject: [PATCH] comment for another service implementation --- src/platform/macos.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/platform/macos.rs b/src/platform/macos.rs index 07ffd782e..798b2b112 100644 --- a/src/platform/macos.rs +++ b/src/platform/macos.rs @@ -424,10 +424,12 @@ pub fn start_os_service() { log::error!("Failed to start ipc_service: {}", err); } - /* // somehow, below works fine if user logged in, but mouse/keyboard not work under prelogin. - // one solution to run --server as agent in prelogin, - // and run --server under --service via run_as_user if not in prelogin - // so that no multiple --server if multiple logged-in users + /* // mouse/keyboard works in prelogin now with launchctl asuser. + // below can avoid multi-users logged in problem, but having its own below problem. + // Not find a good way to start --cm without root privilege (affect file transfer). + // one way is to start with `launchctl asuser open -n -a /Applications/RustDesk.app/ --args --cm`, + // this way --cm is started with the user privilege, but we will have problem to start another RustDesk.app + // with open in explorer. use std::sync::{ atomic::{AtomicBool, Ordering}, Arc,