mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-16 01:41:29 +03:00
fix: make event loop in tray compatible with main window
This commit is contained in:
@@ -1581,7 +1581,13 @@ bool checkArguments() {
|
||||
/// Returns true if we successfully handle the uri provided.
|
||||
/// [Functions]
|
||||
/// 1. New Connection: rustdesk://connection/new/your_peer_id
|
||||
/// 2. Bring the main window to the top: empty uriPath
|
||||
bool parseRustdeskUri(String uriPath) {
|
||||
// If we invoke uri with blank path, we just bring the main window to tht top.
|
||||
if (uriPath.isEmpty) {
|
||||
window_on_top(null);
|
||||
return true;
|
||||
}
|
||||
final uri = Uri.tryParse(uriPath);
|
||||
if (uri == null) {
|
||||
debugPrint("uri is not valid: $uriPath");
|
||||
|
||||
@@ -173,13 +173,10 @@ class PlatformFFI {
|
||||
if (Platform.isLinux) {
|
||||
// Start a dbus service, no need to await
|
||||
_ffiBind.mainStartDbusServer();
|
||||
_ffiBind.mainStartPa();
|
||||
} else if (Platform.isMacOS && isMain) {
|
||||
Future.wait([
|
||||
// Start dbus service.
|
||||
_ffiBind.mainStartDbusServer(),
|
||||
// Start local audio pulseaudio server.
|
||||
_ffiBind.mainStartPa()
|
||||
]);
|
||||
// Start ipc service for uri links.
|
||||
_ffiBind.mainStartIpcUrlServer();
|
||||
}
|
||||
_startListenEvent(_ffiBind); // global event
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user