Regenerating GNOME Icon Cache

2009-06-29 19:57

When a new GTK+ application is installed, the newly added launcher item sometimes does not have its icon. It’s mostly because the icon cache is not up-to-date. You can fix this problem by regenerating or rebuilding the GTK+ icon cache using the following command:

gtk-update-icon-cache -f '/usr/share/icons/<THEME_NAME>'

However, we can simply update the whole cache without thinking much because updating the cache take not much time. I just put the following script into /etc/cron.daily so that the cache is fixed and the missing icon appears overnight:

#!/bin/sh
find /usr/share/icons -mindepth 1 -maxdepth 1 -type d | while read -r THEME; do
  if [ -f "$THEME/index.theme" ]; then
    gtk-update-icon-cache -f -q "$THEME"
  fi
done
---

Comment

1 Comments

Thanks, worked great for me!

Da_Coynul · 2009-11-16 10:50 · # · Reply

 
  • Preview 버튼 누르고 reCAPTCHA 입력 후 Submit 버튼까지 눌러야 실제로 게시됩니다.
  • Make sure to answer the reCAPTCHA and click the Submit button to get your comment posted. It's not enough to click the Preview button only! -- See why.
---