Skip to content

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

fix ci

rustdesk7bb4e22a77ef
diff --git a/flutter/android/app/src/main/kotlin/ffi.kt b/flutter/android/app/src/main/kotlin/ffi.kt
index d61bccfd6..ba29021b3 100644
--- a/flutter/android/app/src/main/kotlin/ffi.kt
+++ b/flutter/android/app/src/main/kotlin/ffi.kt
@@ -11,7 +11,7 @@ object FFI {
}
external fun init(ctx: Context)
- external fun startServer(app_dir: String)
+ external fun startServer(app_dir: String, custom_client_config: String)
external fun startService()
external fun onVideoFrameUpdate(buf: ByteBuffer)
external fun onAudioFrameUpdate(buf: ByteBuffer)
diff --git a/flutter/lib/mobile/pages/connection_page.dart b/flutter/lib/mobile/pages/connection_page.dart
index d2a3c0347..51612c9e7 100644
--- a/flutter/lib/mobile/pages/connection_page.dart
+++ b/flutter/lib/mobile/pages/connection_page.dart
@@ -84,7 +84,7 @@ class _ConnectionPageState extends State<ConnectionPage> {
slivers: [
SliverList(
delegate: SliverChildListDelegate([
- _buildUpdateUI(),
+ if (!bind.isCustomClient()) _buildUpdateUI(),
_buildRemoteIDTextField(),
])),
SliverFillRemaining(
diff --git a/flutter/lib/mobile/pages/home_page.dart b/flutter/lib/mobile/pages/home_page.dart
index f19541c8c..e75f9998a 100644
--- a/flutter/lib/mobile/pages/home_page.dart
+++ b/flutter/lib/mobile/pages/home_page.dart
@@ -4,6 +4,7 @@ import 'package:flutter_hbb/mobile/pages/settings_page.dart';
import 'package:get/get.dart';
import '../../common.dart';
import '../../common/widgets/chat_page.dart';
+import '../../models/platform_model.dart';
import 'connection_page.dart';
abstract class PageShape extends Widget {
@@ -43,7 +44,7 @@ class HomePageState extends State<HomePage> {
void initPages() {
_pages.clear();
- _pages.add(ConnectionPage());
+ if (!bind.isIncomingOnly()) _pages.add(ConnectionPage());
if (isAndroid) {
_pages.addAll([ChatPage(type: ChatPageType.mobileMain), ServerPage()]);
}
@@ -141,7 +142,7 @@ class HomePageState extends State<HomePage> {
],
);
}
- return Text("RustDesk");
+ return Text(bind.mainGetAppNameSync());
}
}
@@ -154,7 +155,7 @@ class WebHomePage extends StatelessWidget {
// backgroundColor: MyTheme.grayBg,
appBar: AppBar(
centerTitle: true,
- title: Text("RustDesk${isWeb ? " (Beta) " : ""}"),
+ title: Text(bind.mainGetAppNameSync()),
actions: connectionPage.appBarActions,
),
body: connectionPage,