mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
732 B

  1. # update gnome2 icon cache files for gnome2 directories that
  2. # contain index.theme files
  3. echo "Gnome 2 icon cache files: running gtk-update-icon-cache..."
  4. all_installed "gnome2/share/.*/index.theme$" |
  5. while read IDX; do
  6. gtk-update-icon-cache "${IDX%index.theme}"
  7. done
  8. # update gnome2 icon cache files for icon directories
  9. # that don't contain an index.theme file
  10. all_touched "gnome2/share/.*/icons" |
  11. while read FILE; do
  12. DIR="${FILE%icons/*}icons"
  13. [ ! -e "$DIR/index.theme" ] &&
  14. gtk-update-icon-cache --ignore-theme-index "$DIR"
  15. done
  16. all_touched "gnome2/share/icons/hicolor" |
  17. while read FILE; do
  18. DIR="${FILE%hicolor/*}hicolor"
  19. [ ! -e "$DIR/index.theme" ] &&
  20. gtk-update-icon-cache --ignore-theme-index "$DIR"
  21. done