lamusicc / music

Gentoo overlay by lamusicc
1 stars 1 forks source link

Update GTK+ icon cache after installing clipit #1

Open sayap opened 11 years ago

sayap commented 11 years ago

I found that I have to run gtk-update-icon-cache -f /usr/share/icons/hicolor/ as root for the clipit tray icon to appear, otherwise I would get the "missing" icon instead.

sayap commented 11 years ago

This diff would probably work:

--- clipit-1.4.2.ebuild.orig    2012-12-14 17:11:28.701942577 +0800
+++ clipit-1.4.2.ebuild 2012-12-14 17:11:58.469941325 +0800
@@ -33,11 +33,17 @@
    dodoc AUTHORS NEWS README ABOUT-NLS
 }

+pkg_preinst() {
+   gnome2_icon_savelist
+}
+
 pkg_postinst() {
+   gnome2_icon_cache_update
    fdo-mime_desktop_database_update
 }

 pkg_postrm() {
+   gnome2_icon_cache_update
    fdo-mime_desktop_database_update
 }

Btw, thanks for the ebuild :)

sayap commented 11 years ago

Ahh, I forgot about this:

--- clipit-1.4.2.ebuild.orig    2012-12-14 17:11:28.701942577 +0800
+++ clipit-1.4.2.ebuild 2012-12-15 06:43:59.919667004 +0800
@@ -4,7 +4,7 @@

 EAPI=4

-inherit fdo-mime autotools eutils
+inherit fdo-mime autotools eutils gnome2-utils

 DESCRIPTION="ClipIt is a lightweight, fully featured GTK+ clipboard manager."
 HOMEPAGE="http://sourceforge.net/projects/gtkclipit/"