tmp workaround of '-cm' not exit cause rustdesk not launchable from
finder
This commit is contained in:
parent
4965ecda12
commit
b2afde4b27
@ -39,7 +39,8 @@ pub extern "C" fn rustdesk_core_main() -> bool {
|
|||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern "C" fn handle_applicationShouldOpenUntitledFile() {
|
pub extern "C" fn handle_applicationShouldOpenUntitledFile() {
|
||||||
hbb_common::log::debug!("icon clicked on finder");
|
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();
|
crate::platform::macos::check_main_window();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user