#401 exclude statement in menus not working

None
closed-fixed
menu-cache (31)
6
2014-09-25
2011-09-01
Anonymous
No

from http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html
<Exclude>

Any number of <Exclude> elements may appear below a <Menu> element. The content of an <Exclude> element is a list of matching rules, just as with an <Include>. However, the desktop entries matched are removed from the list of desktop entries included so far. (Thus an <Exclude> element that appears before any <Include> elements will have no effect, for example, as no desktop entries have been included yet.)

It doesent work as expected though. The attached menu file shows that while the items all get sorted into the "menu subfolder" they still appear in the Games root a second time even though they should be excluded there. Worked this way in gnome2 e.g. and doesent work in lxde.

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-09-01

    example taken from /etc/xdg/menus/applications-merged

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-09-01

    app menu

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-09-01

    lxde app menu

     
  • Kevin Knerr

    Kevin Knerr - 2014-05-04

    I just spent an entire weekend confirming this bug.

    Not only does LXDE not honor the <Exclude> tag, it actually treats the <Exclude> tag as an <Include> tag (which is why it took me so long to confirm it).

    This old post I found in the Linux Mint forums also confirms this bug: http://forums.linuxmint.com/viewtopic.php?f=175&t=98898

     
  • Lonely Stranger

    Lonely Stranger - 2014-05-04
    • labels: lxpanel --> menu-cache
    • assigned_to: Lonely Stranger
    • Group: --> -
    • Priority: 5 --> 6
     
  • Lonely Stranger

    Lonely Stranger - 2014-05-04

    Thank you. I am sure it is long staying bug in the menu-cache. I hope to get it fixed in next release of menu-cache.

     
  • Lonely Stranger

    Lonely Stranger - 2014-09-25

    I believe this issue is completely fixed in the latest release of menu-cache. Test it, please, and leave a comment if something is still wrong to reopen the issue. Thank you very much.

     
  • Lonely Stranger

    Lonely Stranger - 2014-09-25
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks