After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 362604 - Run gtk-update-icon-cache in uninstall-hook
Run gtk-update-icon-cache in uninstall-hook
Status: RESOLVED FIXED
Product: general
Classification: Other
Component: general
unspecified
Other Linux
: Urgent normal
: ---
Assigned To: Unknown User
Unknown User
Depends on: 422860 430726 431565 431573 432424 432431 432435 432437 432439 432735 433060 433070 433075 433078 433149 433275 433694 433730 435650 435668 436204 436213 436258 436357 436397 539646
Blocks:
 
 
Reported: 2006-10-16 13:26 UTC by Behdad Esfahbod
Modified: 2009-01-11 19:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Behdad Esfahbod 2006-10-16 13:26:13 UTC
Copying from http://jongsmamm.blogspot.com/2006/10/icon-theme-cache-issues.html

In the theme-friendly-icons gnome goal:

  http://live.gnome.org/GnomeGoals/AppIcon

We made all apps run gtk-update-icon-cache in install-hook.  They also should call it in uninstall-hook.  The patch should be something like:

- install-data-hook :
+ install-data-hook: update-icon-cache
+ uninstall-hook: update-icon-cache
+ update-icon-cache:
          @-if test -z "$(DESTDIR)"; then \
                  echo "Updating Gtk icon cache."; \
                  $(gtk_update_icon_cache); \
          else \
-                 echo "*** Icon cache not updated.  After install, run this:"; \
+                 echo "*** Icon cache not updated.  After (un)install, run this:"; \ 
                  echo "***   $(gtk_update_icon_cache)"; \
          fi


We should run another GNOME Goal to apply this.
Comment 1 Luis Menina 2007-04-24 21:46:41 UTC
Depends on bugs:
432437 432735 432439 433060  433078 433075 433070
Sorry, can't change that because of unsufficient bugzilla privileges...
Comment 2 Nickolay V. Shmyrev 2007-05-01 11:50:05 UTC
To be honest, you have to create goal #5 then. This action should be converted to automake macro and used in applications. Otherwise you have to change every app if something will change once again like with forgotten unistall-hook.
Comment 3 Luis Menina 2009-01-11 19:55:19 UTC
Closing, as all the bug it depended on are closed.