start dbus only for main

This commit is contained in:
rustdesk 2024-06-16 23:59:09 +08:00
parent 2e0eaed322
commit ed0cba281f

View File

@ -132,8 +132,10 @@ class PlatformFFI {
_ffiBind = RustdeskImpl(dylib);
if (isLinux) {
// Start a dbus service, no need to await
_ffiBind.mainStartDbusServer();
if (isMain) {
// Start a dbus service for uri links, no need to await
_ffiBind.mainStartDbusServer();
}
if (appType == kAppTypeConnectionManager) {
_ffiBind.mainStartPa();
}