mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
feat: support create shortcut for peers
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
use hbb_common::log;
|
||||
|
||||
// shared by flutter and sciter main function
|
||||
/// shared by flutter and sciter main function
|
||||
///
|
||||
/// [Note]
|
||||
/// If it returns [`None`], then the process will terminate, and flutter gui will not be started.
|
||||
/// If it returns [`Some`], then the process will continue, and flutter gui will be started.
|
||||
pub fn core_main() -> Option<Vec<String>> {
|
||||
// https://docs.rs/flexi_logger/latest/flexi_logger/error_info/index.html#write
|
||||
// though async logger more efficient, but it also causes more problems, disable it for now
|
||||
@@ -223,6 +227,8 @@ fn import_config(path: &str) {
|
||||
///
|
||||
/// [Note]
|
||||
/// this is for invoke new connection from dbus.
|
||||
/// If it returns [`None`], then the process will terminate, and flutter gui will not be started.
|
||||
/// If it returns [`Some`], then the process will continue, and flutter gui will be started.
|
||||
#[cfg(feature = "flutter")]
|
||||
fn core_main_invoke_new_connection(mut args: std::env::Args) -> Option<Vec<String>> {
|
||||
args.position(|element| {
|
||||
@@ -250,5 +256,5 @@ fn core_main_invoke_new_connection(mut args: std::env::Args) -> Option<Vec<Strin
|
||||
}
|
||||
}
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
return None;
|
||||
return Some(Vec::new());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user