Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334993 - www-client/opera-10.61 icon is missing in gnome menus
Summary: www-client/opera-10.61 icon is missing in gnome menus
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-28 11:16 UTC by Rick Harris
Modified: 2010-12-22 16:15 UTC (History)
1 user (show)

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


Attachments
desktop file installed from upstream, www-client/opera-11.00.1156 (opera-browser.desktop,1.16 KB, text/plain)
2010-12-21 19:27 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Harris 2010-08-28 11:16:52 UTC
Gnome support has been removed between versions 10.11 and 10.61.
Adding gnome support back in from the 10.11 ebuild to 10.61 solves the problem.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-21 16:17:37 UTC
Is this still relevant? How would we go about fixing this? Why is the icon missing? How do we get it back? :)
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-12-21 16:45:57 UTC
what format is the icon file in ? where is it located ?
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-21 19:15:32 UTC
astrid ~ # qlist -eo opera |grep icons
/usr/share/icons/hicolor/128x128/mimetypes/opera-widget.png
/usr/share/icons/hicolor/128x128/mimetypes/opera-extension.png
/usr/share/icons/hicolor/128x128/mimetypes/opera-unite-application.png
/usr/share/icons/hicolor/128x128/apps/opera-widget-manager.png
/usr/share/icons/hicolor/128x128/apps/opera-browser.png
/usr/share/icons/hicolor/16x16/mimetypes/opera-widget.png
/usr/share/icons/hicolor/16x16/mimetypes/opera-extension.png
/usr/share/icons/hicolor/16x16/mimetypes/opera-unite-application.png
/usr/share/icons/hicolor/16x16/apps/opera-widget-manager.png
/usr/share/icons/hicolor/16x16/apps/opera-browser.png
/usr/share/icons/hicolor/22x22/mimetypes/opera-widget.png
/usr/share/icons/hicolor/22x22/mimetypes/opera-extension.png
/usr/share/icons/hicolor/22x22/mimetypes/opera-unite-application.png
/usr/share/icons/hicolor/22x22/apps/opera-widget-manager.png
/usr/share/icons/hicolor/22x22/apps/opera-browser.png
/usr/share/icons/hicolor/32x32/mimetypes/opera-widget.png
/usr/share/icons/hicolor/32x32/mimetypes/opera-extension.png
/usr/share/icons/hicolor/32x32/mimetypes/opera-unite-application.png
/usr/share/icons/hicolor/32x32/apps/opera-widget-manager.png
/usr/share/icons/hicolor/32x32/apps/opera-browser.png
/usr/share/icons/hicolor/24x24/mimetypes/opera-widget.png
/usr/share/icons/hicolor/24x24/mimetypes/opera-extension.png
/usr/share/icons/hicolor/24x24/mimetypes/opera-unite-application.png
/usr/share/icons/hicolor/24x24/apps/opera-widget-manager.png
/usr/share/icons/hicolor/24x24/apps/opera-browser.png
/usr/share/icons/hicolor/scalable/mimetypes/opera-widget.svg
/usr/share/icons/hicolor/scalable/mimetypes/opera-extension.svg
/usr/share/icons/hicolor/scalable/mimetypes/opera-unite-application.svg
/usr/share/icons/hicolor/scalable/apps/opera-browser.svg
/usr/share/icons/hicolor/scalable/apps/opera-widget-manager.svg
/usr/share/icons/hicolor/48x48/mimetypes/opera-widget.png
/usr/share/icons/hicolor/48x48/mimetypes/opera-extension.png
/usr/share/icons/hicolor/48x48/mimetypes/opera-unite-application.png
/usr/share/icons/hicolor/48x48/apps/opera-widget-manager.png
/usr/share/icons/hicolor/48x48/apps/opera-browser.png
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-21 19:27:27 UTC
Created attachment 257702 [details]
desktop file installed from upstream, www-client/opera-11.00.1156
Comment 5 Pacho Ramos gentoo-dev 2010-12-21 19:57:22 UTC
With opera-10.63 and gnome 2.32 I am able to see the icon in menu entry properly :-/
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-12-21 21:59:16 UTC
I think the issue boils down to opera not using functions from fdo-mime eclass and gnome2-utils eclass.
You need to:
 * update the gtk icon cache since you are introducing files in /usr/share/icons/hicolor (see how gnome2 eclass uses it)
 * update desktop database since you are installing a desktop file

Once the ebuild does this, icon/desktop file should appear just fine in gnome menu.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-21 23:16:42 UTC
If you could show me a way to do it without using any gnome*.eclass...
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-12-22 09:16:42 UTC
gnome2-utils eclass won't harm, it's only utility functions, no exported phases. Same as fdo-mime.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-22 15:33:30 UTC
How about this?

Index: opera-11.00.1156.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/opera-11.00.1156.ebuild,v
retrieving revision 1.2
diff -u -B -r1.2 opera-11.00.1156.ebuild
--- opera-11.00.1156.ebuild     21 Dec 2010 15:55:47 -0000      1.2
+++ opera-11.00.1156.ebuild     22 Dec 2010 15:33:14 -0000
@@ -4,7 +4,7 @@
 
 EAPI="3"
 
-inherit eutils multilib pax-utils versionator
+inherit eutils fdo-mime gnome2-utils multilib pax-utils versionator
 
 DESCRIPTION="A standards-compliant graphical Web browser"
 HOMEPAGE="http://www.opera.com/"
@@ -201,6 +201,10 @@
                "${D}/${OPREFIX}/opera/operapluginwrapper"
 }
 
+pkg_preinst() {
+       use gtk && gnome2_icon_savelist
+}
+
 pkg_postinst() {
        elog "To change the UI language, choose [Tools] -> [Preferences], open the"
        elog "[General] tab, click on [Details...] then [Choose...] and point the"
@@ -212,4 +216,14 @@
                elog "To improve shared memory usage please set:"
                elog "$ sysctl kern.ipc.shm_allow_removed=1"
        fi
+
+       # Update desktop file database (bug #334993)
+       use gtk && gnome2_icon_cache_update
+       fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+       # Update desktop file database (bug #334993)
+       use gtk && gnome2_icon_cache_update
+       fdo-mime_desktop_database_update
 }
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-22 15:51:08 UTC
Oh, I see that `use gtk &&' is actually redundant in all cases. :)
Comment 11 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-12-22 16:04:54 UTC
yes this should fix it.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-22 16:15:05 UTC
Thanks everyone. Fixed in =www-client/opera-11.00.1156, CVS rev 1.3.