! 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 !
exclude statement in menus not working
Status:
RESOLVED: WONTFIX

Comments

Description che666 2011-09-01 09:47:29 CEST
Created attachment 3843 
taken from /etc/xdg/menus/applications-merged

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 xfce
Comment 1 Jannis Pohlmann editbugs 2011-09-01 11:00:14 CEST
This might be a merging issue. However, this is not a standalone menu but one that is merged into applications.menu or xfce-applications.menu (that's why it's in /applications-merged/). Can you attach the outer .menu file as well?
Comment 2 che666 2011-09-01 11:12:57 CEST
Created attachment 3844 
applications.menu

outer menu
Comment 3 Jannis Pohlmann editbugs 2011-09-01 12:10:12 CEST
Created attachment 3845 
Merged menu structure

I only have four games installed on this machine but it seems to work fine.

The root menu of the first attachment is merged into the root menu of the applications.menu file. This results in a merge of the two games submenus. The first one has an <Include> rule, so in the final menu structure you have an <Include> of all games followed by an <Exclude> of certain types of games.

Attached is the merged structure, which looks fine to me. Note, however, that Xfce uses xfce-applications.menu, not applications.menu (unless you changed that yourself obviously).
Comment 4 che666 2011-09-01 12:34:15 CEST
the structure looks definitely fine but with me the games that appear in their category subfolders are not excluded from the games "root" folder.

so they appear twice:

one time e.g. in the Games/Simulations "menu folder" and one time directly in Games despite the fact that it is excluded.
Comment 5 Jannis Pohlmann editbugs 2011-09-01 13:04:30 CEST
Ok, which version of garcon do you have installed? (xfdesktop is 4.8.0?)
Comment 6 che666 2011-09-01 13:19:28 CEST
xfdesktop-4.8.2-1.fc16.x86_64
garcon-0.1.8-1.fc16.x86_64
Comment 7 Skunnyk editbugs 2018-10-08 23:14:33 CEST
Closing old garcon bugreport.
Please reopen if needed.

Bug #7941

Reported by:
che666
Reported on: 2011-09-01
Last modified on: 2018-10-08

People

Assignee:
Jannis Pohlmann
CC List:
2 users

Version

Version:
unspecified

Attachments

taken from /etc/xdg/menus/applications-merged (5.81 KB, application/octet-stream)
2011-09-01 09:47 CEST , che666
no flags
applications.menu (3.54 KB, application/octet-stream)
2011-09-01 11:12 CEST , che666
no flags
Merged menu structure (10.67 KB, text/plain)
2011-09-01 12:10 CEST , Jannis Pohlmann
no flags

Additional information