From 7c6c50a3bff8dea7a3382b8c47e4395b193165e9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 21 Jul 2011 11:16:46 +0000 Subject: [PATCH] * Nuke the KDE icon cache on login. svn path=/nixos/trunk/; revision=27867 --- modules/services/x11/desktop-managers/kde4.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/services/x11/desktop-managers/kde4.nix b/modules/services/x11/desktop-managers/kde4.nix index 5c5260cb01e..68a3ea79413 100644 --- a/modules/services/x11/desktop-managers/kde4.nix +++ b/modules/services/x11/desktop-managers/kde4.nix @@ -42,6 +42,16 @@ in bgSupport = true; start = '' + # The KDE icon cache is supposed to update itself + # automatically, but it uses the timestamp on the icon + # theme directory as a trigger. Since in Nix the + # timestamp is always the same, this doesn't work. So as + # a workaround, nuke the icon cache on login. This isn't + # perfect, since it may require logging out after + # installing new applications to update the cache. + # See http://lists-archives.org/kde-devel/26175-what-when-will-icon-cache-refresh.html + rm -fv $HOME/.kde/cache-*/icon-cache.kcache + # Start KDE. exec ${pkgs.kde4.kdebase_workspace}/bin/startkde '';