nixos/gdm: add gdm to XDG_DATA_DIRS

This is necessary so that gnome-session can find GDM's gnome-login.session,
see https://gitlab.gnome.org/GNOME/gdm/-/issues/756
This commit is contained in:
Naïm Favier 2022-01-15 21:52:57 +01:00
parent c4525c86be
commit d25ffc3a0c
No known key found for this signature in database
GPG Key ID: 49B07322580B7EE2

View File

@ -149,7 +149,7 @@ in
environment = {
GDM_X_SERVER_EXTRA_ARGS = toString
(filter (arg: arg != "-terminate") cfg.xserverArgs);
XDG_DATA_DIRS = "${cfg.sessionData.desktops}/share/";
XDG_DATA_DIRS = "${gdm}/share:${cfg.sessionData.desktops}/share";
} // optionalAttrs (xSessionWrapper != null) {
# Make GDM use this wrapper before running the session, which runs the
# configured setupCommands. This relies on a patched GDM which supports