fix: uni links failed to be invoked with --cm running on macOS

This commit is contained in:
Kingtous
2023-02-07 01:31:11 +08:00
parent b2afde4b27
commit 1426771ec9
3 changed files with 21 additions and 5 deletions

View File

@@ -117,7 +117,7 @@ class PlatformFFI {
if (Platform.isLinux) {
// Start a dbus service, no need to await
_ffiBind.mainStartDbusServer();
} else if (Platform.isMacOS) {
} else if (Platform.isMacOS && isMain) {
// Start an ipc server for handling url schemes.
_ffiBind.mainStartIpcUrlServer();
}