From f2a612c3d95bfd75b94ec4295ce61224b44edcdb Mon Sep 17 00:00:00 2001 From: rustdesk Date: Mon, 17 Jun 2024 10:57:25 +0800 Subject: [PATCH] add voice_call start_pa --- flutter/lib/models/native_model.dart | 3 --- flutter/lib/web/bridge.dart | 4 ---- src/flutter_ffi.rs | 5 ----- src/ui_session_interface.rs | 2 ++ 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/flutter/lib/models/native_model.dart b/flutter/lib/models/native_model.dart index 5883416ef..0b70e30c8 100644 --- a/flutter/lib/models/native_model.dart +++ b/flutter/lib/models/native_model.dart @@ -136,9 +136,6 @@ class PlatformFFI { // Start a dbus service for uri links, no need to await _ffiBind.mainStartDbusServer(); } - if (appType == kAppTypeConnectionManager) { - _ffiBind.mainStartPa(); - } } else if (isMacOS && isMain) { // Start ipc service for uri links. _ffiBind.mainStartIpcUrlServer(); diff --git a/flutter/lib/web/bridge.dart b/flutter/lib/web/bridge.dart index 60d4aa732..2cb7a5734 100644 --- a/flutter/lib/web/bridge.dart +++ b/flutter/lib/web/bridge.dart @@ -1412,10 +1412,6 @@ class RustdeskImpl { return false; } - Future mainStartPa({dynamic hint}) { - throw UnimplementedError(); - } - bool mainHideDocker({dynamic hint}) { throw UnimplementedError(); } diff --git a/src/flutter_ffi.rs b/src/flutter_ffi.rs index 4acae7393..a44c3d095 100644 --- a/src/flutter_ffi.rs +++ b/src/flutter_ffi.rs @@ -1839,11 +1839,6 @@ pub fn main_is_login_wayland() -> SyncReturn { SyncReturn(is_login_wayland()) } -pub fn main_start_pa() { - #[cfg(target_os = "linux")] - std::thread::spawn(crate::ipc::start_pa); -} - pub fn main_hide_docker() -> SyncReturn { #[cfg(target_os = "macos")] crate::platform::macos::hide_dock(); diff --git a/src/ui_session_interface.rs b/src/ui_session_interface.rs index 2df18ae42..1c56b97d1 100644 --- a/src/ui_session_interface.rs +++ b/src/ui_session_interface.rs @@ -1268,6 +1268,8 @@ impl Session { #[inline] pub fn request_voice_call(&self) { + #[cfg(target_os = "linux")] + std::thread::spawn(crate::ipc::start_pa); self.send(Data::NewVoiceCall); }