Icons and menus

Mark McLoughlin markmc at redhat.com
Tue Jul 12 11:23:19 UTC 2005


Hi,

On Wed, 2005-07-06 at 08:31 +0100, Paul Howarth wrote:
> Yesterday I got a bug report on the bittorrent-gui package, the issue
> being that no icon appeared in the user's menu for the application.

...

> Bug report:
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=162465
> 
	Okay, unless I'm mistaken, the reporter is saying that the menu item
for the app does appear in the menu, but the icon does not appear in the
menu item.

	If so, the issue is possibly that there's an icon cache
in /usr/share/pixmaps (icon-theme.cache) where you're installing the
icon and since you're not updating the icon cache (with
gtk-update-icon-cache), the panel never sees the new icon.

	Now, there should be no icon-theme.cache in /usr/share/pixmaps - none
of the Extras or Core packages create one AFAICS, so the cache was
either created by some bogus package in the past or the user created the
cache himself.

	Either way, I think its a spurious problem which the user can fix by
deleting /usr/share/pixmaps/icon-theme.cache.

Cheers,
Mark.

(
  As an aside, these days apps should be installing their icon 
  in $(datadir)/icons/hicolor/48x48/apps instead of $(datadir)/pixmaps
  (as suggested by the icon theme spec) and gtk-update-icon-cache 
  should be run in %post and %postun ala:

  $post
  touch --no-create %{_datadir}/icons/hicolor
  if [ -x /usr/bin/gtk-update-icon-cache ]; then
    gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  fi
)




More information about the fedora-extras-list mailing list