menu-spec: Excluded items are Unllocated

Mark McLoughlin markmc at redhat.com
Wed Dec 8 15:32:34 EET 2004


On Wed, 2004-12-08 at 11:51 +0100, Waldo Bastian wrote:
> On Wednesday 08 December 2004 06:11, Jeff Waugh wrote:
> > Hi all,
> >
> > <insert yet another "where is the menu spec on the website?" question>
> >
> > The following behaviour may be the intention of the spec, so bear with me
> > for a minute. :-)
> >
> > When I exclude menu items by filename in my .menu file, they are regarded
> > as unallocated, so they're displayed in my OnlyUnallocated menu. This seems
> > less than optimal given that by excluding them, I wanted them to go away.
> > :) I could use NoDisplay=true, but that requires .desktop file changes.
> >
> > Should excluded items be regarded as unallocated? If so, is there an
> > alternative method of hiding by filename in the .menu file?
> 
> I can confirm your observations. In the KDE menu editor I explicitly exclude 
> deleted items from the default "OnlyUnallocated" menu in addition. That's 
> rather hackish.
> 
> Maybe we can add an attribute to the exclude tag to indicate that we really 
> don't want this entry around, and that it should be considered "allocated to 
> this menu but not shown"

	Well, we could say that items which match an <Include> rule are
"allocated" whether or not they are later excluded by an <Exclude> rule.
If the goal of <OnlyUnAllocated/> is to catch items that don't fit in
any other category, then I think that would work fine.

Cheers,
Mark.




More information about the xdg mailing list