Updated About delegate of MacOS RustDesk (markdown)

RustDesk
2024-03-27 15:09:42 +08:00
parent 8cf1cd4eba
commit 90c7695157

@@ -1,6 +1,6 @@
We have two most important delegate events, one is url schema via browser, another one is launchpad click. We have two most important delegate events, one is url schema via browser, another one is launchpad click.
When `--server` is running, the delegate events will be captured by `--server` background process, the delegate listeners are registered in [tao crate](https://github.com/rustdesk-org/tao/blob/1cad16b200485bbccc67dcee2d339eac6e1c16ad/src/platform_impl/macos/app_delegate.rs). It also may be captured by `--service` which caused launchpad click failure, here is a fix for this, https://github.com/rustdesk/rustdesk/discussions/5631#discussioncomment-8916223. When `--server` is running, the delegate events will be captured by `--server` background process, the delegate listeners are registered in [tao crate](https://github.com/rustdesk-org/tao/blob/1cad16b200485bbccc67dcee2d339eac6e1c16ad/src/platform_impl/macos/app_delegate.rs). It also may be captured by `--service` which caused launchpad click failure, here is a [fix](https://github.com/rustdesk/rustdesk/discussions/5631#discussioncomment-8916223) for this.
When `--server` receives the delegate, it will check if there is RustDesk window. When `--server` receives the delegate, it will check if there is RustDesk window.
- If there is, `--server` will send url schema to the RustDesk windows - If there is, `--server` will send url schema to the RustDesk windows
- If there is not, `--server` will run command `rustdesk <url-schema>` - If there is not, `--server` will run command `rustdesk <url-schema>`