summary refs log tree commit diff
path: root/nixos/modules/services/x11/display-managers/set-session.py
Commit message (Collapse)AuthorAge
* nixos/display-managers: update set-session for new "SessionType" propertyLuke Granger-Brown2021-08-01
| | | | | | | | 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/gdm: don't raise an Exception in set-session scriptworldofpeace2019-11-22
| | | | https://github.com/NixOS/nixpkgs/pull/73378#discussion_r349825541
* nixos/gdm: make desktopManager.default workworldofpeace2019-11-22
Unfortunately, you can't configure the default user-session with GDM like lightdm. I've opened a feature request [0] 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. [0]: https://gitlab.gnome.org/GNOME/gdm/issues/535