From 780fefcdcfd21f335378899f2e20d92978b476e7 Mon Sep 17 00:00:00 2001 From: joeyh Date: Sun, 8 Jul 2007 22:16:15 +0000 Subject: =?UTF-8?q?r2010:=20*=20dh=5Ficons:=20New=20program=20to=20update?= =?UTF-8?q?=20Freedesktop=20icon=20caches.=20Thanks=20=20=20to=20Josselin?= =?UTF-8?q?=20Mouette,=20Ross=20Burton,=20Jordi=20Mallach,=20and=20Lo?= =?UTF-8?q?=C3=AFc=20Minier.=20=20=20Closes:=20#329460=20*=20Note=20that?= =?UTF-8?q?=20as=20a=20transitional=20measure,=20dh=5Ficons=20will=20curre?= =?UTF-8?q?ntly=20only=20update=20=20=20existing=20caches,=20and=20not=20c?= =?UTF-8?q?reate=20and=20new=20caches.=20Once=20everything=20is=20=20=20up?= =?UTF-8?q?dating=20the=20icon=20caches,=20this=20will=20be=20changed.=20S?= =?UTF-8?q?ee=20#329460=20for=20the=20full=20=20=20plan.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- autoscripts/postrm-icons | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 autoscripts/postrm-icons (limited to 'autoscripts/postrm-icons') diff --git a/autoscripts/postrm-icons b/autoscripts/postrm-icons new file mode 100644 index 00000000..3765560c --- /dev/null +++ b/autoscripts/postrm-icons @@ -0,0 +1,15 @@ +if [ "$1" = "remove" ]; then + for dir in #DIRLIST#; do + if [ -d "$dir" ]; then + if [ -f "$dir"/index.theme ] && \ + [ -f "$dir"/icon-theme.cache ] && \ + which gtk-update-icon-cache >/dev/null 2>&1 + then + gtk-update-icon-cache --force --quiet "$dir" + else + rm -f "$dir"/icon-theme.cache + rmdir -p --ignore-fail-on-non-empty "$dir" + fi + fi + done +fi -- cgit v1.2.3