[gnome-builder/wip/chergert/multi-process: 49/58] app: connect to UI DBus server as authentication client



commit b97611a75b9a8e1bbebc0b461a3627f6e8b8d0d6
Author: Christian Hergert <chergert redhat com>
Date:   Tue Oct 20 18:25:21 2015 -0700

    app: connect to UI DBus server as authentication client
    
    The parent process needs credentials from our side, so ensure that we send
    them during socket setup.

 src/app/gb-application.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index 6108d0d..2351a6e 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -74,7 +74,7 @@ gb_application_load_worker (GbApplication *self)
   IDE_TRACE_MSG ("Connecting to %s", self->dbus_address);
 
   connection = g_dbus_connection_new_for_address_sync (self->dbus_address,
-                                                       G_DBUS_CONNECTION_FLAGS_NONE,
+                                                       G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT,
                                                        NULL, NULL, &error);
 
   if (error != NULL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]