Make default connection use RDP for Sciter and Flutter desktop

This commit is contained in:
Leopard-HX 2026-06-12 02:43:00 +08:00
commit e77f15f0b8
3 changed files with 4 additions and 4 deletions

View file

@ -2310,7 +2310,7 @@ bool handleUriLink({List<String>? cmdArgs, Uri? uri, String? uriString}) {
switch (type) {
case UriLinkType.remoteDesktop:
Future.delayed(Duration.zero, () {
rustDeskWinManager.newRemoteDesktop(id!,
rustDeskWinManager.newPortForward(id!, true,
password: password,
switchUuid: switchUuid,
forceRelay: forceRelay);
@ -2540,7 +2540,7 @@ connect(BuildContext context, String id,
bool isViewCamera = false,
bool isTerminal = false,
bool isTcpTunneling = false,
bool isRDP = false,
bool isRDP = true,
bool forceRelay = false,
String? password,
String? connToken,

View file

@ -1278,7 +1278,7 @@ pub fn session_add_existed(
let conn_type = if is_view_camera {
ConnType::VIEW_CAMERA
} else {
ConnType::DEFAULT_CONN
ConnType::RDP
};
sessions::insert_peer_session_id(peer_id, conn_type, session_id, displays);
Ok(())

View file

@ -609,7 +609,7 @@ impl SciterSession {
} else if cmd.eq("--rdp") {
ConnType::RDP
} else {
ConnType::DEFAULT_CONN
ConnType::RDP
};
session