! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
all .desktop files get a duplicate menu entry in the the 'Other' menu
Status:
RESOLVED: FIXED
Product:
Libxfce4menu
Component:
General

Comments

Description Brian J. Tarricone (not reading bugmail) 2007-10-22 19:22:01 CEST
19:16 <+kelnos|work> JPohlmann: hey, i noticed yesterday that libxfce4menu is putting a copy of all .desktop files in the 'Other' toplevel menu.  what's up with that?
19:17 <+JPohlmann> kelnos|laptop: Hmm. Maybe <Include><All/></Include> collides with <OnlyUnallocated/>. That would be a bug at my end then.
Comment 1 Jannis Pohlmann editbugs 2007-12-22 23:48:46 CET
This actually is an issue related to the menu item cache. One important feature of the item cache is that it takes a reference on all menu items used. This makes it possible to increment an allocation counter whenever an item is included into a menu. Now if we disable the item cache, we cannot use this allocation counting trick any more (which is unavoidable if we want to follow the spec!). Maybe you remember: I disabled the item cache some time ago due to changes not becoming visible even with monitoring support.

Im going to post a message similar to this in reply to other related bug reports: I've re-added the menu item cache together with a new method: xfce_menu_item_cache_invalidate (XfceMenuItemCache *). In the desktop_menu_something_changed() method in xfdesktop, just call this and re-create your menu afterwards. That will solve both problems: the allocation counting is back and all menu items will be parsed again when something has changed.
Comment 2 Jannis Pohlmann editbugs 2008-09-20 01:21:58 CEST
How about this one - still valid?
Comment 3 Brian J. Tarricone (not reading bugmail) 2008-09-20 01:31:04 CEST
Yes, but I wonder if it's related to the crashes -- perhaps this happens when the we have references to freed XfceMenuItems but nobody else is using the memory so it doesn't crash...
Comment 4 Brian J. Tarricone (not reading bugmail) 2008-09-20 05:18:25 CEST
Oh, wait, no, I'm being stupid.  I thought this wasbug #4342.  This is fixed.

Bug #3619

Reported by:
Brian J. Tarricone (not reading bugmail)
Reported on: 2007-10-22
Last modified on: 2009-07-14

People

Assignee:
Jannis Pohlmann
CC List:
0 users

Version

Version:
4.5.90 (4.6 alpha)

Attachments

Additional information