add voice_call start_pa

This commit is contained in:
rustdesk 2024-06-17 10:57:25 +08:00
parent 4a648f0068
commit f2a612c3d9
4 changed files with 2 additions and 12 deletions

View File

@ -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();

View File

@ -1412,10 +1412,6 @@ class RustdeskImpl {
return false;
}
Future<void> mainStartPa({dynamic hint}) {
throw UnimplementedError();
}
bool mainHideDocker({dynamic hint}) {
throw UnimplementedError();
}

View File

@ -1839,11 +1839,6 @@ pub fn main_is_login_wayland() -> SyncReturn<bool> {
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<bool> {
#[cfg(target_os = "macos")]
crate::platform::macos::hide_dock();

View File

@ -1268,6 +1268,8 @@ impl<T: InvokeUiSession> Session<T> {
#[inline]
pub fn request_voice_call(&self) {
#[cfg(target_os = "linux")]
std::thread::spawn(crate::ipc::start_pa);
self.send(Data::NewVoiceCall);
}