! 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 !
Also search subdirectories for desktop files in share/applications
Status:
RESOLVED: WORKSFORME
Product:
Libxfce4menu
Component:
General

Comments

Description Nick Schermer editbugs 2007-06-21 19:26:38 CEST
It seems Xfce doesn't search inside sub-directories in the 'applications' folders. KDE for example, stores some apps inside /usr/share/applications/kde/. I've no idea if the spec allows this, but it's probably better to add some simple tree walk script here.

I've also cc-ed Jannis for libxfce4menu.

Originally reported by Joe Klemmer:
http://foo-projects.org/pipermail/xfce/2007-June/021481.html
Comment 1 Nate Lee 2008-01-02 03:49:08 CET
Question here (sorry if I´m interrupting). I´ve seen info that seems to say that I can cause an item to _not_ display in a particular user´s menu by adding a copy of the /usr/share/applications/<n>.desktop file to the users /home/<user>/share/applications directory and adding ¨NoDisplay=true¨ and this will supersede the file in /usr/share... and cause the menu item _not_ to display on the Applications menu for that particular user. Is this true? I´ve been attempting this and it doesn´t seem to work (assuming it is supposed to act this way). And I´ve been hunting all over for the right folks to ask about this. If this is a bug, I´d like this to serve as the appropriate notice of the bug, too.  Thanks very much
Comment 2 Jannis Pohlmann editbugs 2008-09-20 01:37:00 CEST
As for the sub-directory thing: That should just work (tm) as long as the .desktop files don't have OnlyShowIn=KDE or NotShowIn=XFCE.

@Nate: Sorry for the late reply. libxfce4menu currently reads the NoDisplay value but doesn't hide the menu items from the client. So all clients need to check xfce_menu_item_get_no_display() and skip the menu items with NoDisplay=true. It probably makes sense to handle this inside libxfce4menu and not in each client on its own. In the current state this is more a xfdesktop or xfce4-appfinder bug than one of libxfce4menu.
Comment 3 Jannis Pohlmann editbugs 2009-02-01 22:59:39 CET
It should work just fine. I'll mark this as WORKSFORME for now until someone proves that it doesn't work.

Bug #3355

Reported by:
Nick Schermer
Reported on: 2007-06-21
Last modified on: 2009-07-14

People

Assignee:
Jannis Pohlmann
CC List:
1 user

Version

Version:
4.5.90 (4.6 alpha)

Attachments

Additional information