After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 696949 - The 'Frequent' tab of an application view shows unwanted apps.
The 'Frequent' tab of an application view shows unwanted apps.
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: overview
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-03-31 05:43 UTC by abyss.7
Modified: 2013-04-22 17:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
AppDisplay/FrequentView: filter out hidden applications (1.08 KB, patch)
2013-03-31 18:10 UTC, Giovanni Campagna
committed Details | Review

Description abyss.7 2013-03-31 05:43:24 UTC
By unwanted apps, I mean the apps that are hidden by the 'alacarte' app.
For example, I have 'Gnome Extension Options' app in the 'Frequent' tab and I don't know how to get rid of it.
The 'Frequent' tab should respect the desktop menu specification.
Comment 1 Giovanni Campagna 2013-03-31 18:10:19 UTC
Created attachment 240225 [details] [review]
AppDisplay/FrequentView: filter out hidden applications

Filter out all applications which have the NoDisplay, Hidden or
Not/OnlyShowIn bits, as those are not meant to be launched directly.
This also allows the user to filter apps from the frequent view
using alacarte.
Comment 2 Jasper St. Pierre (not reading bugmail) 2013-03-31 21:53:04 UTC
Review of attachment 240225 [details] [review]:

This is wrong if an application is in a category that is NoDisplay or Hidden, or that category is in such a category, etc. You need to use libgmenu's is_nodisplay_recurse() here.
Comment 3 Giovanni Campagna 2013-03-31 21:59:47 UTC
No, categories don't matter here.
If I hide an entire category, I'm not hiding the apps inside it from the whole system. I can search them, and I get them in Frequent. Frequent this way operates like a new automatic category.
Comment 4 Jasper St. Pierre (not reading bugmail) 2013-03-31 22:17:14 UTC
You can't search for apps that have a hidden category parent, actually. We don't traverse hidden categories when we build visible_id_to_app, which is what the app search system searches. If I hide the Wine category, I wouldn't want it to show up in Frequent, nor in search, nor in my menus.

That said, GNOME is constantly moving away from the classic interpretation of the menu spec, so perhaps we should just ignore the NoDisplay state of categories for the ease of implementation.
Comment 5 Bastian Ilsø 2013-04-22 17:03:45 UTC
Can confirm this issue with 3.8.1.
Comment 6 Jasper St. Pierre (not reading bugmail) 2013-04-22 17:06:49 UTC
Review of attachment 240225 [details] [review]:

Given the recent status of wanting to ignore NoDisplay for categories, let's go with this.
Comment 7 Giovanni Campagna 2013-04-22 17:20:16 UTC
Attachment 240225 [details] pushed as 58872d1 - AppDisplay/FrequentView: filter out hidden applications