tmp workaround of '-cm' not exit cause rustdesk not launchable from

finder
This commit is contained in:
rustdesk 2023-02-07 00:18:25 +08:00
parent 4965ecda12
commit b2afde4b27

View File

@ -39,7 +39,8 @@ pub extern "C" fn rustdesk_core_main() -> bool {
#[no_mangle]
pub extern "C" fn handle_applicationShouldOpenUntitledFile() {
hbb_common::log::debug!("icon clicked on finder");
if std::env::args().nth(1) == Some("--server".to_owned()) {
let x = std::env::args().nth(1).unwrap_or_default();
if x == "--server" || x == "--cm" {
crate::platform::macos::check_main_window();
}
}