
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. https://bugzilla.gnome.org/show_bug.cgi?id=687970