From d9f58ed4df9a91a6767fb0ef4720f8b76f792428 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Sun, 2 Jul 2023 11:22:52 +0800 Subject: [PATCH] workaround of exit tray in windows --- src/tray.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tray.rs b/src/tray.rs index a3926d3ad..8618e0f78 100644 --- a/src/tray.rs +++ b/src/tray.rs @@ -101,10 +101,12 @@ pub fn make_tray() -> hbb_common::ResultType<()> { if let Ok(event) = menu_channel.try_recv() { if event.id == quit_i.id() { + /* failed in windows, seems no permission to check system process if !crate::check_process("--server", false) { *control_flow = ControlFlow::Exit; return; } + */ crate::platform::uninstall_service(false); } else if event.id == open_i.id() { open_func();