refact, linux headless option

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-07-29 21:28:42 +08:00
parent 3343210e8b
commit ddaefddc6e
2 changed files with 86 additions and 113 deletions

View File

@@ -372,12 +372,12 @@ class _DesktopHomePageState extends State<DesktopHomePage>
} else if (Platform.isLinux) {
if (bind.mainCurrentIsWayland()) {
return buildInstallCard(
"Warning", translate("wayland_experiment_tip"), "", () async {},
"Warning", "wayland_experiment_tip", "", () async {},
help: 'Help',
link: 'https://rustdesk.com/docs/en/manual/linux/#x11-required');
} else if (bind.mainIsLoginWayland()) {
return buildInstallCard("Warning",
translate("Login screen using Wayland is not supported"), "", () async {},
"Login screen using Wayland is not supported", "", () async {},
help: 'Help',
link: 'https://rustdesk.com/docs/en/manual/linux/#login-screen');
}