diff options
author | Peter Hoeg <peter@hoeg.com> | 2018-10-04 11:57:55 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2018-10-05 11:27:17 +0800 |
commit | c8b3a26aec03d207ee11a9b82f6a0b6c64694a96 (patch) | |
tree | 73aed09f8386d188c03b285489cba2af3c7ee9b1 /nixos | |
parent | 092f82b8036b9cc0fae3332a1bb04129394349f2 (diff) |
plasma5: run kbuildsycoca5 in the user context
(cherry picked from commit 4dada63a174331151251cf8be093cd8fcdf28c12)
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/x11/desktop-managers/plasma5.nix | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/plasma5.nix b/nixos/modules/services/x11/desktop-managers/plasma5.nix index e759f69db8970..706555921454a 100644 --- a/nixos/modules/services/x11/desktop-managers/plasma5.nix +++ b/nixos/modules/services/x11/desktop-managers/plasma5.nix @@ -225,11 +225,8 @@ in security.pam.services.sddm.enableKwallet = true; security.pam.services.slim.enableKwallet = true; - # Update the start menu for each user that has `isNormalUser` set. - system.activationScripts.plasmaSetup = stringAfter [ "users" "groups" ] - (concatStringsSep "\n" - (mapAttrsToList (name: value: "${pkgs.su}/bin/su ${name} -c ${pkgs.libsForQt5.kservice}/bin/kbuildsycoca5") - (filterAttrs (n: v: v.isNormalUser) config.users.users))); + # Update the start menu for each user that is currently logged in + system.userActivationScripts.plasmaSetup = "${pkgs.libsForQt5.kservice}/bin/kbuildsycoca5"; }) ]; |