Introduce $gtk_iconcache_dirs to fix the gtk-icon-cache trigger.
--HG-- extra : convert_revision : 1be7864a5554fd3779092adcdf1e9410be5d55a9
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
#
|
||||
trigger="gtk-icon-cache"
|
||||
iconcache_bin=./usr/bin/gtk-update-icon-cache
|
||||
iconcache_dir=./usr/share/icons/hicolor
|
||||
|
||||
case "$1" in
|
||||
targets)
|
||||
@@ -20,10 +19,18 @@ run)
|
||||
|
||||
case "$2" in
|
||||
post-*)
|
||||
if [ -x ${iconcache_bin} ]; then
|
||||
echo "Updating GTK's icon cache themes..."
|
||||
${iconcache_bin} -f -t ${iconcache_dir}
|
||||
fi
|
||||
for dir in ${gtk_iconcache_dirs}; do
|
||||
if [ -f ${dir}/icon-theme.cache ]; then
|
||||
rm -f ${dir}/icon-theme.cache
|
||||
echo "Removed GTK+ icon theme cache for ${dir}."
|
||||
fi
|
||||
if [ -x ${iconcache_bin} ]; then
|
||||
echo -n "Updating GTK+ icon cache for "
|
||||
echo -n "${dir}... "
|
||||
${iconcache_bin} -q -f -t ${dir}
|
||||
echo "done."
|
||||
fi
|
||||
done
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user