[gnome-shell] remoteSearch: exclude content from hidden apps
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] remoteSearch: exclude content from hidden apps
- Date: Thu, 6 Jun 2019 01:24:47 +0000 (UTC)
commit 3cbdf4f9a57db9e2c09270eeb75ed40d9b412607
Author: Simon Schampijer <simon schampijer endlessm com>
Date: Thu Nov 9 18:01:58 2017 +0100
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]