Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

try start tray when a new controlled connection is established for windows flutter

21pagesdb0ab2e4a9e2
diff --git a/src/server/connection.rs b/src/server/connection.rs
index c9f07eb78..85db55136 100644
--- a/src/server/connection.rs
+++ b/src/server/connection.rs
@@ -1351,6 +1351,12 @@ impl Connection {
log::error!("ipc to connection manager exit: {}", err);
}
});
+ #[cfg(all(windows, feature = "flutter"))]
+ std::thread::spawn(|| {
+ if crate::is_server() && !crate::check_process("--tray", false) {
+ crate::platform::run_as_user(vec!["--tray"]).ok();
+ }
+ });
}
}