Skip to content

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

fix(linux): read Debian's GDM config when checking for a Wayland login screen (#16674)

Lukas106f700be4a9
diff --git a/src/platform/linux.rs b/src/platform/linux.rs
index a8b716828..f6b17c1b4 100644
--- a/src/platform/linux.rs
+++ b/src/platform/linux.rs
@@ -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"),