From 8ee740e4254dc6c8cfc6864f83cf065beb959985 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 4 Jul 2009 15:01:54 +0100 Subject: [PATCH] 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 --- src/shell-app-system.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shell-app-system.c b/src/shell-app-system.c index 50da81dfd..44601c24d 100644 --- a/src/shell-app-system.c +++ b/src/shell-app-system.c @@ -217,7 +217,8 @@ gather_entries_recurse (ShellAppSystem *monitor, { GMenuTreeEntry *entry = (GMenuTreeEntry *)item; const char *id = gmenu_tree_entry_get_desktop_file_id (entry); - ids = g_slist_prepend (ids, g_strdup (id)); + if (!gmenu_tree_entry_get_is_nodisplay (entry)) + ids = g_slist_prepend (ids, g_strdup (id)); } break; case GMENU_TREE_ITEM_DIRECTORY: