GNOME Bugzilla – Bug 167934
LegacyDir doesn't work if .desktop doesn't have any Categories entry
Last modified: 2005-03-23 21:58:49 UTC
Distribution/Version: 5.3-STABLE Add a new foobar.desktop that looks like this: ================================ [Desktop Entry] Name=FooBar Comment=Web Browser Exec=foobar Icon=foobar.xpm Terminal=0 Type=Application ================================ Then put it in ${prefix}/share/gnome/apps/Internet or applnk/Internet or wherever in your system. As for mine is in /usr/X11R6/share/gnome/apps/Internet in FreeBSD. In my applications.menu has looks like this: ================================ <!-- Scan legacy dirs first, as later items take priority --> <KDELegacyDirs/> <LegacyDir>/etc/X11/applnk</LegacyDir> <LegacyDir>/usr/X11R6/share/gnome/apps</LegacyDir> ================================ Restart gnome-panel and an icon has never appear in menu unless I add 'Categories=Application;Network;WebBrowser;' in the foobar.desktop to make it appear in the menu. Before, you ask for run it in MENU_VERBOSE=1, I already have it here in url for you to download it. http://people.freebsd.org/~mezz/debug.txt.bz2
Created attachment 38108 [details] [review] fix-legacy-dirs.patch This seems to fix it for me. (Incidently, your debug log doesn't seem to be from when you had foobar.desktop in your tree. Thanks, though)
Sorry, the 'foobar.desktop' was just an example.. As for in the log, it has several, so you can check for linux-opera.desktop or pan.desktop. Thanks for patch, I am going to test it this afternoon! If you believe it's fixed, go ahead mark it as fixed.
ok, tested patch and it doesn't solve.
Thanks. I'm going to need another debug log using gnome-menus 2.9.2, the patch and MENU_VERBOSE=1
Okay, I'm going to assume it did in fact fix your problem :-) If you can reproduce with CVS HEAD (or GNOME 2.10.1 when it comes out) or can give me a debug log with 2.9.2 (or 2.10.0) with the patch applied, then please do re-open. 2005-03-08 Mark McLoughlin <mark@skynet.ie> Should fix bug #167934 even though the reporter says it doesn't :-) Well, this at least fixes a problem with <LegacyDir> if the toplevel directory doesn't contain any entries. * libmenu/menu-tree.c: (add_menu_for_legacy_dir): Add a <Menu> for the <LegacyDir> if it has any subdirs.
*** Bug 169235 has been marked as a duplicate of this bug. ***
It's fixed in the 2.10.1 tarball, thanks!