From 5a7d7dc19f774e66f83c7e214007107c7d89da2d Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 1 Aug 2021 22:22:35 +0000 Subject: nixos/display-managers: update set-session for new "SessionType" property GDM 40.1 switched from storing X11 sessions in the "XSession" property on AccountService to "Session" with a "x11" "SessionType". For compatibility reasons, we should set both, since AccountService doesn't seem to provide the compatibility for us. --- nixos/modules/services/x11/display-managers/set-session.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/x11/display-managers/set-session.py b/nixos/modules/services/x11/display-managers/set-session.py index 0cca80af44e..75940efe32b 100755 --- a/nixos/modules/services/x11/display-managers/set-session.py +++ b/nixos/modules/services/x11/display-managers/set-session.py @@ -72,11 +72,14 @@ def main(): f"Setting session name: {session}, as we found the existing wayland-session: {session_file}" ) user.set_session(session) + user.set_session_type("wayland") elif is_session_xsession(session_file): logging.debug( f"Setting session name: {session}, as we found the existing xsession: {session_file}" ) user.set_x_session(session) + user.set_session(session) + user.set_session_type("x11") else: logging.error(f"Couldn't figure out session type for {session_file}") sys.exit(1) -- cgit 1.4.1