3
0
Fork 0
forked from mirrors/nixpkgs

nixos/pantheon: allow excluding pantheon-agent-geoclue2

Bash will raise syntax error for sessionCommands if sessionPath is empty.
This commit is contained in:
Bobby Rong 2023-06-18 17:12:32 +08:00
parent 7c67f006ea
commit 013bb477b4
No known key found for this signature in database

View file

@ -113,6 +113,7 @@ in
services.xserver.displayManager.sessionCommands = ''
if test "$XDG_CURRENT_DESKTOP" = "Pantheon"; then
true
${concatMapStrings (p: ''
if [ -d "${p}/share/gsettings-schemas/${p.name}" ]; then
export XDG_DATA_DIRS=$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}${p}/share/gsettings-schemas/${p.name}