[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#630088: hook to remove GNOME icon cache



Package: live-build
Version: 3.0~a18-1
Severity: wishlist
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch oneiric

The Kubuntu developers don't want to ship icon-theme.cache files;
apparently they're mainly GNOME-specific and can be rather large.  The
attached hook can be set up to remove them.  Feel free to rename it - I
wasn't sure what kind of namespacing you wanted to use.

Thanks,

-- 
Colin Watson                                       [cjwatson@ubuntu.com]
>From 82775076288542fa9258b079fdc75479b3a735ee Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@canonical.com>
Date: Fri, 10 Jun 2011 18:17:57 +0100
Subject: [PATCH] Add Kubuntu hook to remove GNOME icon cache.

---
 examples/hooks/kubuntu_chroot_icon-theme.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100755 examples/hooks/kubuntu_chroot_icon-theme.sh

diff --git a/examples/hooks/kubuntu_chroot_icon-theme.sh b/examples/hooks/kubuntu_chroot_icon-theme.sh
new file mode 100755
index 0000000..0aaa653
--- /dev/null
+++ b/examples/hooks/kubuntu_chroot_icon-theme.sh
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+# This is a hook for live-build(7) to remove the GNOME icon cache for
+# Kubuntu builds.
+# To enable it, copy or symlink this hook into your config/chroot_local-hooks
+# directory.
+
+rm -f /usr/share/icons/*/icon-theme.cache
-- 
1.7.5.3


Reply to: