mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-03 16:32:22 +00:00
fix(linux): read Debian's GDM config when checking for a Wayland login screen (#16674)
is_login_wayland() looks for WaylandEnable in /etc/gdm3/custom.conf and /etc/gdm/custom.conf. Debian's gdm3 package ships /etc/gdm3/daemon.conf instead (bookworm and trixie), whose default has '#WaylandEnable=false', so on Debian the function always returned false and the 'Login screen using Wayland is not supported' card never appeared. Read daemon.conf after the two custom.conf paths.
This commit is contained in:
1 parent
f7b0af78cb
commit
106f700be4
1 file changed
+6
-1
@@ -1322,7 +1322,12 @@ fn get_cm() -> bool {
|
||||
}
|
||||
|
||||
pub fn is_login_wayland() -> bool {
|
||||
let files = ["/etc/gdm3/custom.conf", "/etc/gdm/custom.conf"];
|
||||
// Debian's gdm3 reads /etc/gdm3/daemon.conf instead of custom.conf.
|
||||
let files = [
|
||||
"/etc/gdm3/custom.conf",
|
||||
"/etc/gdm/custom.conf",
|
||||
"/etc/gdm3/daemon.conf",
|
||||
];
|
||||
match (
|
||||
Regex::new(r"# *WaylandEnable *= *false"),
|
||||
Regex::new(r"WaylandEnable *= *true"),
|
||||
|
||||
Reference in new issue
Block a user