summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorWORLDofPEACE <worldofpeace@protonmail.ch>2020-10-23 11:46:46 -0400
committerGitHub <noreply@github.com>2020-10-23 11:46:46 -0400
commitb44e32988ca813628bd02ae422e99e9a80079410 (patch)
treea1c7d941eec0d16ed24f58b3e9d98e97e8211743 /nixos
parente894c00e1c76fd7ce068abaaec37525687866c09 (diff)
parent755ba171c7ed60031481d1c30b1daf0389a68317 (diff)
Merge pull request #101274 from worldofpeace/gnome-logout-button
nixos/display-managers: add sessionData.desktops to XDG_DATA_DIRS
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/display-managers/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/display-managers/default.nix b/nixos/modules/services/x11/display-managers/default.nix
index 568aeaceef75..6945a241f92f 100644
--- a/nixos/modules/services/x11/display-managers/default.nix
+++ b/nixos/modules/services/x11/display-managers/default.nix
@@ -474,6 +474,12 @@ in
)
[dms wms]
);
+
+ # Make xsessions and wayland sessions available in XDG_DATA_DIRS
+ # as some programs have behavior that depends on them being present
+ environment.sessionVariables.XDG_DATA_DIRS = [
+ "${cfg.displayManager.sessionData.desktops}/share"
+ ];
};
imports = [