From 013bb477b46eb7c8e45c86d4d433e885274bd8a2 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sun, 18 Jun 2023 17:12:32 +0800 Subject: [PATCH] nixos/pantheon: allow excluding pantheon-agent-geoclue2 Bash will raise syntax error for sessionCommands if sessionPath is empty. --- nixos/modules/services/x11/desktop-managers/pantheon.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/x11/desktop-managers/pantheon.nix b/nixos/modules/services/x11/desktop-managers/pantheon.nix index c61c53642f4b..0db4cca520f3 100644 --- a/nixos/modules/services/x11/desktop-managers/pantheon.nix +++ b/nixos/modules/services/x11/desktop-managers/pantheon.nix @@ -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}