GNOME Bugzilla – Bug 171366
<LegacyDir> Internet sub-menu not merged with normal Internet sub-menu
Last modified: 2005-06-01 16:08:44 UTC
With the 2.10.1 update, the desktop files from /usr/share/applnk/ are listed in the menus and create some weird duplicates.
Created attachment 39135 [details] screenshot of the issue This screenshot describes the issue. Now the menu has a duplicated "Internet" category. The new one seems to come from "/usr/share/applnk/Internet/lynx.desktop". /usr/share/applnk/Internet/lynx.desktop: [Desktop Entry] Type=Application Exec=/usr/bin/lynx %u Name=Lynx Terminal=1 Comment=Lynx Icon=html MimeType=text/html XClassHintResName=Lynx This desktop file has no category, it should probably not be listed. The WINE icon in the menu come in the same way from a /usr/share/applnk/wine.desktop.
The only bug here, I think, is that there are two Internet menus - I would expect there to be just one Internet menu. Could you attach the output of MENU_VERBOSE=1 gnome-menu-spec-test ? (They are being pulled in because of the <KDELegacyDirs/> in the .menu file - see the menu spec for more details of the whys and wherefors)
Created attachment 39137 [details] verbose log
Created attachment 39188 [details] [review] fix
Fixed on HEAD and gnome-2-10: 2005-03-24 Mark McLoughlin <mark@skynet.ie> Fix issue where you could end up with more than one menu with the same name - bug #171366 * libmenu/menu-tree.c: (menu_tree_strip_duplicate_children): When deleting an item from the list, make sure our prev pointer doesn't point to the deleted one so that we catch any further duplicates.
the patch works fine here, thanks
*** Bug 305772 has been marked as a duplicate of this bug. ***
not completly fixed, see bug #305772