From 3cbdf4f9a57db9e2c09270eeb75ed40d9b412607 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 9 Nov 2017 18:01:58 +0100 Subject: [PATCH] remoteSearch: exclude content from hidden apps Some apps may be configured as NoDisplay=true, but still install a search provider. Like we do elsewhere, exclude them from showing up in the UI. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/568 --- js/ui/remoteSearch.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/remoteSearch.js b/js/ui/remoteSearch.js index 1b9186bdc..ce8c4d09b 100644 --- a/js/ui/remoteSearch.js +++ b/js/ui/remoteSearch.js @@ -89,6 +89,8 @@ function loadRemoteSearchProviders(searchSettings, callback) { try { let desktopId = keyfile.get_string(group, 'DesktopId'); appInfo = Gio.DesktopAppInfo.new(desktopId); + if (!appInfo.should_show()) + return; } catch (e) { log('Ignoring search provider ' + path + ': missing DesktopId'); return;