add: cm page

Signed-off-by: Kingtous <kingtous@qq.com>
This commit is contained in:
Kingtous
2022-08-11 18:59:26 +08:00
parent d710b8464c
commit ce86d5a5d4
4 changed files with 582 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
use hbb_common::log;
use crate::start_os_service;
/// Main entry of the RustDesk Core.
/// Return true if the app should continue running with UI(possibly Flutter), false if the app should exit.
pub fn core_main() -> bool {
@@ -5,7 +9,13 @@ pub fn core_main() -> bool {
// TODO: implement core_main()
if args.len() > 1 {
if args[1] == "--cm" {
// For test purpose only, this should stop any new window from popping up when a new connection is established.
// call connection manager to establish connections
// meanwhile, return true to call flutter window to show control panel
return true;
}
if args[1] == "--service" {
log::info!("start --service");
start_os_service();
return false;
}
}