blob: dfad89c96549c3b6917c98f5ac277bfdb47155e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#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 [ -e usr/share/icons/hicolor/icon-theme.cache ]; then # ONLY run this is there's already a cache!!!
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
fi
|