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.

45 lines
1.1 KiB

  1. /D_prefix/bin/gdk-pixbuf-query-loaders \
  2. > /D_sysconfdir/gtk-2.0/gdk-pixbuf.loaders
  3. # update gnome2 icon cache files for gnome2 directories that
  4. # contain index.theme files
  5. print_status=1
  6. all_installed "gnome2/share/.*/index.theme$" |
  7. while read IDX; do
  8. [ $print_status = 1 ] && \
  9. { echo "Gnome 2 icon cache files: running gtk-update-icon-cache..."
  10. print_status=0 ; }
  11. gtk-update-icon-cache "${IDX%index.theme}"
  12. done
  13. # update gnome2 icon cache files for icon directories
  14. # that don't contain an index.theme file
  15. all_touched "gnome2/share/.*/icons" |
  16. while read FILE; do
  17. DIR="${FILE%icons/*}icons"
  18. [ ! -e "$DIR/index.theme" ] &&
  19. {
  20. [ $print_status = 1 ] && \
  21. { echo "Gnome 2 icon cache files: running gtk-update-icon-cache..."
  22. print_status=0 ; }
  23. gtk-update-icon-cache --ignore-theme-index "$DIR"
  24. }
  25. done
  26. all_touched "gnome2/share/icons/hicolor" |
  27. while read FILE; do
  28. DIR="${FILE%hicolor/*}hicolor"
  29. [ ! -e "$DIR/index.theme" ] &&
  30. {
  31. [ $print_status = 1 ] && \
  32. { echo "Gnome 2 icon cache files: running gtk-update-icon-cache..."
  33. print_status=0 ; }
  34. gtk-update-icon-cache --ignore-theme-index "$DIR"
  35. }
  36. done