Skip to content

Commit 7fc4630

Browse files
committed
Fix wayland dm detection
1 parent 1522b71 commit 7fc4630

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

adafruit_shell.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -733,12 +733,9 @@ def get_window_manager(self):
733733
if self.exists("/usr/share/xsessions/rpd-x.desktop") or self.exists(
734734
"/usr/share/wayland-sessions/rpd-labwc.desktop"
735735
):
736-
sessions = {"x11": "rpd-x", "labwc": "rpd-labwc"}
736+
sessions.update({"x11": "rpd-x", "labwc": "rpd-labwc"})
737737
else:
738-
sessions = {
739-
"x11": "LXDE-pi-x",
740-
"labwc": "LXDE-pi-labwc",
741-
}
738+
sessions.update({"x11": "LXDE-pi-x", "labwc": "LXDE-pi-labwc"})
742739

743740
matches = self.pattern_search(
744741
"/etc/lightdm/lightdm.conf", "^(?!#.*?)user-session=(.+)", False, True

0 commit comments

Comments
 (0)