Emerged the following package: [ebuild R ] media-video/vlc-0.8.1-r1 -3dfx +X +a52 +aac -aalib +alsa (-altivec) +arts +bidi +cdda -cddb +cdio -debug +dts -dvb +dvd +esd -fbcon +ffmpeg +flac +freetype -ggi +gnutls +gtk2 +httpd -joystick -libcaca -lirc +live +mad +matroska +mpeg +nls +ogg +opengl +oss +sdl +ssl +stream -svg +svga +theora -unicode +v4l +vcd +vlm +vorbis +wxwindows -xosd +xv 0 kB No icon in the Gnome menu (Applications -> Sound & Video -> VLC Media Player)
The .desktop is installed in the right place, the icon too, Gnome team, can you give a look what's up with that?
The icon appears to need to go in /usr/share/pixmaps, not in /usr/share/icons/hicolor/48x48 for it to be picked up by the menu. When I copy it there, it works.
Okay so tell me why it does _not_ respect fdo specs, because that's, at least, silly. It used to work the current way, by the way.
GNOME follows the fdo specs regarding icon themes. What's probably going on here is that /usr/share/icons/hicolor already has a binary cache file, and it's not being updated after installing the image under that folder. Running "gtk-update-icon-cache -f $ROOT/usr/share/icons/hicolor" from pkg_postinst() or something similar should do the trick. You can take a look at gnome2_icon_cache_update() in gnome2.eclass to see an example. On a side note, while testing this, I noticed that the .desktop file has "Exec=wxvlc", but 'wxvlc' is not available in my system (I guess that's because I installed vlc with USE="-wxwindows") so the menu entry simply fails. You might want to take a loot at that too while you're at it. Thanks :)
Yep the .desktop file should be conditional to wxwindows useflag, I'll fix that. Leonardo, can you provide a patch for the gtk-update-icon-cache thing? I don't have gnome installed here so I can just assume, and it's not so good to assume :| Also, is this going to be needed for everything that install icons in hicolor? In which case, I think we should really find time to write something in /proj/en/desktop, like a guide on how to install "fdo compliant" .desktop and icon files, and what is needed to be done (like this update thing) so that we can push for respecting the specs from ebuild as it's possible.
Assigning to GNOME herd to find a solution (that won't clutter the ebuild hopefully).
just inherit the gnome2 eclass, it's postinst should do the the trick.
added inherit gnome2 to >=0.8.4-r1