search: reload search providers when installed applications change

Otherwise, a shell restart will be required after installing a new
application, before its results can be seen in search.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/562
This commit is contained in:
Cosimo Cecchi 2017-11-30 12:36:31 -08:00 committed by Marco Trevisan
parent 238b87d386
commit 40c2a403ac

View File

@ -431,6 +431,9 @@ var SearchResults = class {
this._cancellable = new Gio.Cancellable(); this._cancellable = new Gio.Cancellable();
this._registerProvider(new AppDisplay.AppSearchProvider()); this._registerProvider(new AppDisplay.AppSearchProvider());
let appSystem = Shell.AppSystem.get_default();
appSystem.connect('installed-changed', this._reloadRemoteProviders.bind(this));
this._reloadRemoteProviders(); this._reloadRemoteProviders();
} }