path: root/autoscripts/postinst-icons
diff options
authorjoeyh <joeyh>2007-07-08 22:16:15 +0000
committerjoeyh <joeyh>2007-07-08 22:16:15 +0000
commit780fefcdcfd21f335378899f2e20d92978b476e7 (patch)
tree8b31dea658bc3c86e5b55932c137dfaa855e6dd9 /autoscripts/postinst-icons
parent02f72dd6d954aa64c5a617cc7fb1647cbefd6562 (diff)
r2010: * dh_icons: New program to update Freedesktop icon caches. Thanks
to Josselin Mouette, Ross Burton, Jordi Mallach, and Loïc Minier. Closes: #329460 * Note that as a transitional measure, dh_icons will currently only update existing caches, and not create and new caches. Once everything is updating the icon caches, this will be changed. See #329460 for the full plan.
Diffstat (limited to 'autoscripts/postinst-icons')
1 files changed, 7 insertions, 0 deletions
diff --git a/autoscripts/postinst-icons b/autoscripts/postinst-icons
new file mode 100644
index 0000000..3c018b3
--- /dev/null
+++ b/autoscripts/postinst-icons
@@ -0,0 +1,7 @@
+if which gtk-update-icon-cache >/dev/null 2>&1; then
+ for dir in #DIRLIST#; do
+ if [ -f "$dir"/icon-theme.cache ]; then
+ gtk-update-icon-cache --force --quiet "$dir"
+ fi
+ done