Don't include NoDisplay items, except for window identification

Searching across NoDisplay desktop items can produce weird
results to the user (including duplicates, and items that
aren't really applications at all.) So, don't include them
normally.

But continue including NoDisplay items when we look up the
desktop file for a window, since we want to catch applications
like Evince and Nautilus which are otherwise NoDisplay.

http://bugzilla.gnome.org/show_bug.cgi?id=587548
This commit is contained in:
Owen W. Taylor 2009-07-04 15:01:54 +01:00
parent f44b3e0553
commit 8ee740e425

View File

@ -217,6 +217,7 @@ gather_entries_recurse (ShellAppSystem *monitor,
{
GMenuTreeEntry *entry = (GMenuTreeEntry *)item;
const char *id = gmenu_tree_entry_get_desktop_file_id (entry);
if (!gmenu_tree_entry_get_is_nodisplay (entry))
ids = g_slist_prepend (ids, g_strdup (id));
}
break;