File gnome-shell-network-agent-not-pop-up.patch of Package gnome-shell.16848

diff --git a/js/ui/components/networkAgent.js b/js/ui/components/networkAgent.js
index 7af6214..b93f2c9 100644
--- a/js/ui/components/networkAgent.js
+++ b/js/ui/components/networkAgent.js
@@ -628,6 +628,20 @@ var NetworkAgent = class {
         this._native.connect('cancel-request', this._cancelRequest.bind(this));
 
         this._initialized = false;
+
+        NM.Client.new_async(null, this._clientGot.bind(this));
+    }
+
+    _clientGot(obj, result) {
+        this._client = NM.Client.new_finish(result);
+        this._client.connect('notify::nm-running', this._initNative.bind(this));
+        this._initNative();
+    }
+
+    _initNative() {
+        if (!this._client.nm_running || this._initialized)
+            return;
+
         this._native.init_async(GLib.PRIORITY_DEFAULT, null, (o, res) => {
             try {
                 this._native.init_finish(res);
openSUSE Build Service is sponsored by