nixos/pantheon: allow excluding pantheon-agent-geoclue2

Bash will raise syntax error for sessionCommands if sessionPath is empty.

(cherry picked from commit 013bb477b4)
This commit is contained in:
Bobby Rong
2023-06-18 17:12:32 +08:00
committed by github-actions[bot]
parent 194e4cf077
commit 4366a375ee

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}