Skip to content

Commit

Permalink
nixos/display-managers: add sessionData.desktops to XDG_DATA_DIRS
Browse files Browse the repository at this point in the history
Fixes NixOS#100108

Alternative to NixOS#100112 which doesn't break stuff.
  • Loading branch information
worldofpeace committed Oct 21, 2020
1 parent 5265d49 commit 755ba17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nixos/modules/services/x11/display-managers/default.nix
Expand Up @@ -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 = [
Expand Down

0 comments on commit 755ba17

Please sign in to comment.