GNOME Bugzilla – Bug 687970
gnome-shell shouldn't show empty categories
Last modified: 2012-12-02 19:15:55 UTC
Created attachment 228537 [details] 2.png As you can see in attached screenshot, a category "Others" is listed even if it's empty, in that case, why should empty categories even shown? Thanks
Which distribution do you use? The only applications of the Other categories might be hidden. Can you attach an archive of your desktop files with: grep -vr "\(Name\|Comment\|Keywords\)" /usr/share/applications/ ~/.local/share/applications/ /usr/share/desktop-directories/ | gzip -9 > bug-687970.gz That could help to nail down the issue quickly.
Created attachment 228931 [details] bug-687970.gz It's Ubuntu 12.04
Created attachment 229112 [details] [review] appDisplay: do not show empty categories Desktop files can specify if the application should only be shown for specified desktops with OnlyShowIn and NotShowIn directives options. If a menu category only contained entries for a different desktop, we were still creating the category. We now only add a category button if there is at least one application to be displayed in this category.
Review of attachment 229112 [details] [review]: Note that usually this is handled by libgmenu, except that the Other category is special (it is mentioned in <layout> to be explicitly at the end). Anyway this is fine.
Comment on attachment 229112 [details] [review] appDisplay: do not show empty categories Attachment 229112 [details] pushed as e6a3958 - appDisplay: do not show empty categories
Pacho, this problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Thanks for your attention and work :)
I'd prefer to revert this and handle it in gmenu. Even though the "Other" category is special, it still should not show up.