Fix check main args

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow 2023-08-01 15:57:38 +08:00
parent 6fa48b4ada
commit d59be68e52

View File

@ -147,7 +147,9 @@ pub fn core_main() -> Option<Vec<String>> {
#[cfg(all(feature = "flutter", feature = "plugin_framework"))]
#[cfg(not(any(target_os = "android", target_os = "ios")))]
init_plugins(&args);
if args.is_empty() {
log::info!("main start args:{:?}", args);
let empty_uni_link = "rustdesk:///";
if args.is_empty() || args[0] == empty_uni_link {
#[cfg(windows)]
clipboard::ContextSend::enable(true);
std::thread::spawn(move || crate::start_server(false));