Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
nixos/gdm: make desktopManager.default work #73378
Motivation for this change
Unfortunately, you can't configure the default user-session
We use a GObject Python script using bindings to AccountsService
I'm not sure this will work right with desktopManager + windowManager
Played with a vm with multiple users and if all their default sessions were as I declared.
Oh, thanks for clearing that up. I wasn't sure if they were named that way.
Unfortunately, you can't configure the default user-session with GDM like lightdm. I've opened a feature request  but I'd like to be able to do this now. We use a GObject Python script using bindings to AccountsService to achieve this. I'm hoping the reliable heuristic for session names is the file's basename. We also have some special logic for which method to use to set the default session. It seems set_x_session is deprecated, and thusly the XSession key, but if that method isn't used when it's an xsession it won't be the default in GDM. : https://gitlab.gnome.org/GNOME/gdm/issues/535