Merge pull request #278593 from SuperSandro2000/xdg-data-dirs-display-managers

nixos/display-managers: only link desktop derivation if sessionPackages is not empty
This commit is contained in:
Nick Cao 2024-01-14 15:22:57 -05:00 committed by GitHub
commit 5ba9fede25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -514,7 +514,7 @@ in
# 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 = [
environment.sessionVariables.XDG_DATA_DIRS = lib.mkIf (cfg.displayManager.sessionPackages != [ ]) [
"${cfg.displayManager.sessionData.desktops}/share"
];
};