Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157865 - apps not showing up in Gnome-menu due to qmerge file order
Summary: apps not showing up in Gnome-menu due to qmerge file order
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-11 15:15 UTC by Thomas R. (TRauMa)
Modified: 2007-11-23 09:13 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas R. (TRauMa) 2006-12-11 15:15:32 UTC
Hi,

I just realized why after emerge, some apps don't show up in the gnome menu. It's because portage most of the time puts the .desktop file in /usr/share/applications, and only after that the corresponding executable to /usr/bin/.

Detailed Description:
Gnome-Menu get's inotified the moment the .desktop file hits the live tree, if it finds an try-exec command it uses it to find out if the application really exists (a feature of the freedesktop.org standard), which fails because emerge hasn't put this command there yet. So to see the new application, a user has to logout/login, which is confusing/unnecessary.

This could affect other apps following the freedesktop.org spec, too.

A related problem is apps showing up in the menu, but without icon - same reason, but this time /usr/share/pixmaps/ is late.

Request:
Teach portage to qmerge /usr/share/applications last.

Alternative:
Find out how to tell running gnome-menus to rescan and do it routinely after emerge. (Touching a file in /usr/share/applications/ does it, but wouldn't be workable as a portage action, I think.)

Related Bugs:
bug #149035, bug #136213 were bugs I found which could describe the same problem, but not the cause. I imagine many users have this problem but don't know why/don't file a bug.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-11 15:28:19 UTC
(In reply to comment #0)
> Request:
> Teach portage to qmerge /usr/share/applications last.

Request - teach Gnome to re-read /usr/share/applications... instead of bring cruft into portage.
Comment 2 Zac Medico gentoo-dev 2006-12-11 15:42:05 UTC
This is way beyond the scope of portage itself.  Maybe you can convince the ebuild maintainers to write an eclass function to solve it in the postinst phase...
Comment 3 Thomas R. (TRauMa) 2006-12-11 15:49:25 UTC
Uhm, which eclass? This affects not only gnome apps, but any app having an .desktop. Should I file a bug against all of them? ;-)

How is info page index recreation handled? 
Comment 4 Thomas R. (TRauMa) 2007-02-04 15:48:43 UTC
Wating for input here.
Comment 5 Thomas R. (TRauMa) 2007-11-23 09:13:51 UTC
This is now handled by desktop_database_update in fdo-mime.eclass