An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
refact: oidc, launch url (#11772)
fufesoua73fa3cbf6fc
diff --git a/flutter/lib/common.dart b/flutter/lib/common.dartindex 3088b3f2a..c2641c929 100644--- a/flutter/lib/common.dart+++ b/flutter/lib/common.dart@@ -2878,6 +2878,7 @@ Future<bool> canBeBlocked() async {return access_mode == 'view' || (access_mode.isEmpty && !option);}+// to-do: web not implementedFuture<void> shouldBeBlocked(RxBool block, WhetherUseRemoteBlock? use) async {if (use != null && !await use()) {block.value = false;diff --git a/flutter/lib/common/widgets/login.dart b/flutter/lib/common/widgets/login.dartindex 13e589d87..c1f18f0a8 100644--- a/flutter/lib/common/widgets/login.dart+++ b/flutter/lib/common/widgets/login.dart@@ -166,10 +166,13 @@ class _WidgetOPState extends State<WidgetOP> {final String stateMsg = resultMap['state_msg'];String failedMsg = resultMap['failed_msg'];final String? url = resultMap['url'];+ final bool urlLaunched = (resultMap['url_launched'] as bool?) ?? false;final authBody = resultMap['auth_body'];if (_stateMsg != stateMsg || _failedMsg != failedMsg) {if (_url.isEmpty && url != null && url.isNotEmpty) {- launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication);+ if (!urlLaunched) {+ launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication);+ }_url = url;}if (authBody != null) {