An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
fix: web send audit note (#9582)
fufesou00d38260e170
diff --git a/flutter/lib/models/platform_model.dart b/flutter/lib/models/platform_model.dartindex 6bc770ff6..0f21587ad 100644--- a/flutter/lib/models/platform_model.dart+++ b/flutter/lib/models/platform_model.dart@@ -6,3 +6,11 @@ final platformFFI = PlatformFFI.instance;final localeName = PlatformFFI.localeName;RustdeskImpl get bind => platformFFI.ffiBind;++String ffiGetByName(String name, [String arg = '']) {+ return PlatformFFI.getByName(name, arg);+}++void ffiSetByName(String name, [String value = '']) {+ PlatformFFI.setByName(name, value);+}diff --git a/flutter/lib/models/state_model.dart b/flutter/lib/models/state_model.dartindex 62f92db12..3481aa2b3 100644--- a/flutter/lib/models/state_model.dart+++ b/flutter/lib/models/state_model.dart@@ -2,7 +2,6 @@ import 'package:desktop_multi_window/desktop_multi_window.dart';import 'package:flutter/material.dart';import 'package:flutter_hbb/common.dart';import 'package:get/get.dart';-import 'native_model.dart' if (dart.library.html) 'web_model.dart';import '../consts.dart';import './platform_model.dart';@@ -83,7 +82,7 @@ class StateGlobal {}procFullscreenWeb() {- final isFullscreen = PlatformFFI.getByName('fullscreen') == 'Y';+ final isFullscreen = ffiGetByName('fullscreen') == 'Y';String fullscreenValue = '';if (isFullscreen && _fullscreen.isFalse) {fullscreenValue = 'N';@@ -91,7 +90,7 @@ class StateGlobal {fullscreenValue = 'Y';}if (fullscreenValue.isNotEmpty) {- PlatformFFI.setByName('fullscreen', fullscreenValue);+ ffiSetByName('fullscreen', fullscreenValue);}}diff --git a/flutter/lib/web/bridge.dart b/flutter/lib/web/bridge.dartindex 5f699114a..6e02328b4 100644--- a/flutter/lib/web/bridge.dart+++ b/flutter/lib/web/bridge.dart@@ -1188,7 +1188,7 @@ class RustdeskImpl {Future<void> sessionSendNote({required UuidValue sessionId, required String note, dynamic hint}) {- throw UnimplementedError();+ return Future(() => js.context.callMethod('setByName', ['send_note', note]));}Future<String> sessionAlternativeCodecs(