This commit is contained in:
rustdesk 2023-07-07 13:33:08 +08:00
parent e5dad3467b
commit 1954f905af

View File

@ -43,9 +43,9 @@ pub fn core_main() -> Option<Vec<String>> {
}
#[cfg(any(target_os = "linux", target_os = "windows"))]
if args.is_empty() {
#[cfg(target_os = "linux")]
hbb_common::allow_err!(crate::platform::check_autostart_config());
if crate::check_process("--server", false) && !crate::check_process("--tray", true) {
#[cfg(target_os = "linux")]
hbb_common::allow_err!(crate::platform::check_autostart_config());
hbb_common::allow_err!(crate::run_me(vec!["--tray"]));
}
}