Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

Fix #616: add rustdesk://password/<password> for android only

rustdesk9d0f8d9886b0
diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart
index 9bd4b091e..7da56ec66 100644
--- a/flutter/lib/common.dart
+++ b/flutter/lib/common.dart
@@ -1970,6 +1970,16 @@ List<String>? urlLinkToCmdArgs(Uri uri) {
importConfig(null, null, config);
});
return null;
+ } else if (uri.authority == "password") {
+ if (Platform.isAndroid) {
+ final password = uri.path.substring("/".length);
+ if (password.isNotEmpty) {
+ Timer(Duration(seconds: 1), () async {
+ await bind.mainSetPermanentPassword(password: password);
+ showToast(translate('Successful'));
+ });
+ }
+ }
} else if (options.contains(uri.authority)) {
final optionIndex = options.indexOf(uri.authority);
command = '--${uri.authority}';