From 7fc4630f1d1682945b85de59f23fcbad7a9869d2 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Wed, 6 Aug 2025 11:39:58 -0700 Subject: [PATCH] Fix wayland dm detection --- adafruit_shell.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/adafruit_shell.py b/adafruit_shell.py index 28f1a75..fb67537 100644 --- a/adafruit_shell.py +++ b/adafruit_shell.py @@ -733,12 +733,9 @@ class Shell: if self.exists("/usr/share/xsessions/rpd-x.desktop") or self.exists( "/usr/share/wayland-sessions/rpd-labwc.desktop" ): - sessions = {"x11": "rpd-x", "labwc": "rpd-labwc"} + sessions.update({"x11": "rpd-x", "labwc": "rpd-labwc"}) else: - sessions = { - "x11": "LXDE-pi-x", - "labwc": "LXDE-pi-labwc", - } + sessions.update({"x11": "LXDE-pi-x", "labwc": "LXDE-pi-labwc"}) matches = self.pattern_search( "/etc/lightdm/lightdm.conf", "^(?!#.*?)user-session=(.+)", False, True