Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92289 - eclass handling of icon updates
Summary: eclass handling of icon updates
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 91329 95548
  Show dependency tree
 
Reported: 2005-05-11 12:56 UTC by Colin Macdonald
Modified: 2005-07-20 09:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output from gnome-session, as done from an xterm (error.log,4.49 KB, text/plain)
2005-06-06 20:23 UTC, John Huttley
Details
Output of `gnome-session` (out,1.80 KB, text/plain)
2005-06-07 00:16 UTC, Henrik Brix Andersen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Macdonald 2005-05-11 12:56:51 UTC
I recently upgraded to gnome 2.10 on my ~x86 box.  I removed the "Menu Bar" from my panel and added a "Main Menu" object instead (i.e., the small icon rather than the strip of menus).

Now when I log into gnome, I get an error dialog which says "Failed to load image gnome-main-menu" "Details: Icon not found".  The icon is then the brown no-icon-found default image instead of the black/cyan gnome foot.

Is this something I've done or can someone else confirm this error?

temporary fix:
The directions here told me which gconf key to edit to change to a custom icon:
http://gnome-look.org/content/show.php?content=22413
Setting the custom icon to gnome-logo-icon-transparent.png works fine.
Comment 1 John Huttley 2005-05-22 16:09:36 UTC
Exactly the same issue for a non root user.
root is ok.
Comment 2 Leonardo Boshell (RETIRED) gentoo-dev 2005-06-04 16:36:00 UTC
This problem is very strange. What version of gnome-panel do you have in your
system?

Can you verify the location and permissions of gnome-main-menu.png? (it should
be under /usr/share/icons/hicolor/48x48/apps)
Comment 3 Henrik Brix Andersen 2005-06-06 09:03:41 UTC
I get the same error message here after just upgrading to gnome-2.10
(gnome-base/gnome-panel-2.10.0).

brix@sponge ~ $ find /usr/share/icons/ -name gnome-main-menu.png -exec ls -l {} \;
-rw-r--r--  1 root root 2314 Jun  6 10:12
/usr/share/icons/HighContrastLargePrint/48x48/apps/gnome-main-menu.png
-rw-r--r--  1 root root 3090 Jun  6 13:05
/usr/share/icons/hicolor/48x48/apps/gnome-main-menu.png
-rw-r--r--  1 root root 1992 Jun  6 10:12
/usr/share/icons/LowContrastLargePrint/48x48/apps/gnome-main-menu.png
-rw-r--r--  1 root root 2369 Jun  6 10:12
/usr/share/icons/HighContrastLargePrintInverse/48x48/apps/gnome-main-menu.png
Comment 4 Leonardo Boshell (RETIRED) gentoo-dev 2005-06-06 11:10:41 UTC
What is the value of the gconf key /desktop/gnome/interface/icon_theme in your
system? (you can check this doing e.g. "gconftool-2 -g
/desktop/gnome/interface/icon_theme")

Also, please try starting gnome-session from a terminal and paste here the
output that it sends to stdout/stderr.
Comment 5 Colin Macdonald 2005-06-06 19:37:03 UTC
comment #2:  I have gnome-panel 2.10.0 and the icon you asked about is in the 
path you described.

comment #4:  That command returns "gnome".  I'm pretty sure I tested it using 
the default theme before and still had the missing icon.  Haven't tried gnome-
session business.  Will try it if I get a chance.  (I'm currently travelling so 
I may not be very responsive to requests for information.)
Comment 6 John Huttley 2005-06-06 20:22:38 UTC
Hi,
My gconf key says "crux"

My gnome-session error output is 4.7K, so I'll add it as an attachment.
Std out was short and boring.

Comment 7 John Huttley 2005-06-06 20:23:42 UTC
Created attachment 60754 [details]
Output from gnome-session, as done from an xterm
Comment 8 Henrik Brix Andersen 2005-06-07 00:16:27 UTC
Created attachment 60756 [details]
Output of `gnome-session`

brix@sponge ~ $ gconftool-2 -g /desktop/gnome/interface/icon_theme
gnome
Comment 9 Henrik Brix Andersen 2005-06-07 00:18:47 UTC
The gnome-main-menu.png image loads fine in an image viewer, so it is not corrupt.
Comment 10 Niels Vorgaard Christensen 2005-06-07 10:01:17 UTC
I experience the same problem. Copying
/usr/share/icons/hicolor/48x48/apps/gnome-main-menu.png to /usr/share/pixmaps
removes the symptom.
Comment 11 Leonardo Boshell (RETIRED) gentoo-dev 2005-06-07 16:53:44 UTC
Please don't use workarounds as copying the image to /usr/share/pixmaps while we
debug the problem.

Let's try one more thing before moving to trickier things. Run the following
command as root:

  gtk-update-icon-cache -f /usr/share/icons/hicolor

And tell us if it changes anything. Thanks.
Comment 12 Jeffrey Wu 2005-06-07 18:43:42 UTC
That solution has worked for me. I can now create a main menu without errors.
Comment 13 John Huttley 2005-06-07 19:19:03 UTC
It works for me too!
Great!

It said "cache created successfully"
Comment 14 Colin Macdonald 2005-06-07 20:09:26 UTC
seems to work for me.
Comment 15 Henrik Brix Andersen 2005-06-08 01:02:50 UTC
`gtk-update-icon-cache -f /usr/share/icons/hicolor` fixed the problem here as well.
Comment 16 Leonardo Boshell (RETIRED) gentoo-dev 2005-06-08 09:20:35 UTC
The fix is now part of gnome-panel's ebuild. Thank you all for your help.
Comment 17 foser (RETIRED) gentoo-dev 2005-06-08 14:23:06 UTC
That is fixing of symptoms. I think I asked not to cache hicolor yet just
because of these reasons, but i guess it didn't get picked up.
Comment 18 Leonardo Boshell (RETIRED) gentoo-dev 2005-07-20 09:43:23 UTC
I didn't know about foser's plans for handling icon updates, but from what I
understand the idea was handling it in gnome2.eclass. For this reason, I've
added the function gnome2_icon_cache_update() to the eclass; it's called from
gnome2_pkg_post{inst,rm}, so we can start removing any piece of code that calls
gtk-update-icon-cache manually from the ebuilds now.

If there is any feedback regarding this new function, I suggest we discuss it in
another bug, we've abused this one enough :).