Problem with <Exclude> tag in XDG menu. Bug?

Forum rules
Before you post please read this

Problem with <Exclude> tag in XDG menu. Bug?

Postby Jaaxx on Thu Apr 05, 2012 10:53 pm

It appears that the <Exclude> tag is entirely non-functional in LM 12 LXDE. I am trying to create a custom menu and I need to exclude some files from a sub menu to prevent them from showing up in the parent menu as well.

I used the same <Exclude> directives in Peppermint Two and Arch with no problem, but it seems like it is not being parsed correctly in Mint 12. In fact, I found that I can use the <Exclude> tag interchangeably with the <Include> tag. That's right, it actually ADDS items to a given menu.

This example gives me a menu with one item in it (audacity) as expected:
Code: Select all
<Menu>
        <Name>Multimedia</Name>
        <Directory>lxde-audio-video.directory</Directory>
   <Include>
         <Filename>audacity.desktop</Filename>
   </Include>
</Menu>



This example gets parsed exactly the same in Mint, but not in Arch or Peppermint.

Code: Select all
<Menu>
        <Name>Multimedia</Name>
        <Directory>lxde-audio-video.directory</Directory>
   <Exclude>
         <Filename>audacity.desktop</Filename>
   </Exclude>
</Menu>


Does anyone know what script is actually parsing the XML to generate the menus? I suspect the issue is there.
Jaaxx
Level 1
Level 1
 
Posts: 13
Joined: Fri Jan 16, 2009 6:19 pm

Linux Mint is funded by ads and donations.
 

Return to Others

Who is online

Users browsing this forum: No registered users and 3 guests