File dont-start-searchprovider-at-login.patch of Package gnome-shell.160
Index: gnome-shell-3.10.4/js/ui/remoteSearch.js
===================================================================
--- gnome-shell-3.10.4.orig/js/ui/remoteSearch.js
+++ gnome-shell-3.10.4/js/ui/remoteSearch.js
@@ -55,8 +55,8 @@ const SearchProvider2Iface = <interface
</method>
</interface>;
-var SearchProviderProxy = Gio.DBusProxy.makeProxyWrapper(SearchProviderIface);
-var SearchProvider2Proxy = Gio.DBusProxy.makeProxyWrapper(SearchProvider2Iface);
+var SearchProviderProxyInfo = Gio.DBusInterfaceInfo.new_for_xml(SearchProviderIface);
+var SearchProvider2ProxyInfo = Gio.DBusInterfaceInfo.new_for_xml(SearchProvider2Iface);
function loadRemoteSearchProviders(addProviderCallback) {
let objectPaths = {};
@@ -172,12 +172,18 @@ function loadRemoteSearchProviders(addPr
const RemoteSearchProvider = new Lang.Class({
Name: 'RemoteSearchProvider',
- _init: function(appInfo, dbusName, dbusPath, proxyType) {
- if (!proxyType)
- proxyType = SearchProviderProxy;
-
- this.proxy = new proxyType(Gio.DBus.session,
- dbusName, dbusPath, Lang.bind(this, this._onProxyConstructed));
+ _init: function(appInfo, dbusName, dbusPath, proxyInfo) {
+ if (!proxyInfo)
+ proxyInfo = SearchProviderProxyInfo;
+
+ this.proxy = new Gio.DBusProxy({ g_bus_type: Gio.BusType.SESSION,
+ g_name: dbusName,
+ g_object_path: dbusPath,
+ g_interface_info: proxyInfo,
+ g_interface_name: proxyInfo.name,
+ g_flags: (Gio.DBusProxyFlags.DO_NOT_AUTO_START_AT_CONSTRUCTION |
+ Gio.DBusProxyFlags.DO_NOT_LOAD_PROPERTIES) });
+ this.proxy.init_async(GLib.PRIORITY_DEFAULT, null, null);
this.appInfo = appInfo;
this.id = appInfo.get_id();
@@ -306,7 +312,7 @@ const RemoteSearchProvider2 = new Lang.C
Extends: RemoteSearchProvider,
_init: function(appInfo, dbusName, dbusPath) {
- this.parent(appInfo, dbusName, dbusPath, SearchProvider2Proxy);
+ this.parent(appInfo, dbusName, dbusPath, SearchProvider2ProxyInfo);
this.canLaunchSearch = true;
},