diff options
Diffstat (limited to 'source/l/hicolor-icon-theme/setup.08.gtk-update-icon-cache')
-rw-r--r-- | source/l/hicolor-icon-theme/setup.08.gtk-update-icon-cache | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/l/hicolor-icon-theme/setup.08.gtk-update-icon-cache b/source/l/hicolor-icon-theme/setup.08.gtk-update-icon-cache new file mode 100644 index 000000000..a1b220b73 --- /dev/null +++ b/source/l/hicolor-icon-theme/setup.08.gtk-update-icon-cache @@ -0,0 +1,14 @@ +#BLURB="Run gtk-update-icon-cache for hicolor theme." + +# This is needed since XFce adds a few hicolor icons that would +# not otherwise be cached. Really, I'm not sure the idea of +# caching icons is a good one -- the use of gtk-update-icon-cache +# could disappear from future install scripts. + +# Update hicolor theme cache: +if [ -d usr/share/icons/hicolor ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + chroot . /usr/bin/gtk-update-icon-cache -f -t usr/share/icons/hicolor 1> /dev/null 2> /dev/null + fi +fi + |