fix #4896
This commit is contained in:
parent
e5dad3467b
commit
1954f905af
@ -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"]));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user