Unverified Commit aaf9676f authored by Luke Granger-Brown's avatar Luke Granger-Brown Committed by GitHub
Browse files

Merge pull request #132366 from lukegb/fix-eval

nixos/display-managers: update set-session for new "SessionType" property
parents 151c2f5a 5a7d7dc1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)