mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
add flutter start_server & fix cm user environment from linux service
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use hbb_common::log;
|
||||
|
||||
use crate::{start_os_service, flutter::connection_manager};
|
||||
use crate::{start_os_service, flutter::connection_manager, start_server};
|
||||
|
||||
/// Main entry of the RustDesk Core.
|
||||
/// Return true if the app should continue running with UI(possibly Flutter), false if the app should exit.
|
||||
@@ -20,7 +20,15 @@ pub fn core_main() -> bool {
|
||||
return false;
|
||||
}
|
||||
if args[1] == "--server" {
|
||||
// TODO: server
|
||||
log::info!("start --server");
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
{
|
||||
start_server(true);
|
||||
}
|
||||
#[cfg(target_os = "macos")]
|
||||
{
|
||||
std::thread::spawn(move || start_server(true));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user