Fixed dbus session type for identity and auth session
authorImran Zaman <imran.zaman@linux.intel.com>
Wed, 9 Oct 2013 09:05:53 +0000 (12:05 +0300)
committerImran Zaman <imran.zaman@linux.intel.com>
Wed, 9 Oct 2013 09:05:53 +0000 (12:05 +0300)
src/daemon/dbus/gsignond-dbus-auth-session-adapter.c
src/daemon/dbus/gsignond-dbus-identity-adapter.c

index 53c24e5..084a4bf 100644 (file)
@@ -478,7 +478,7 @@ GSignondDbusAuthSessionAdapter *
 gsignond_dbus_auth_session_adapter_new (GSignondAuthSession *session, const gchar *app_context, guint timeout)
 {
     GError *error = NULL;
-    GDBusConnection *connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
+    GDBusConnection *connection = g_bus_get_sync (GSIGNOND_BUS_TYPE, NULL, &error);
     if (error) {
         ERR ("Error getting session bus :%s", error->message);
         g_error_free (error);
index 7de4ef6..53804bf 100644 (file)
@@ -837,7 +837,7 @@ GSignondDbusIdentityAdapter *
 gsignond_dbus_identity_adapter_new (GSignondIdentity *identity, const gchar *app_context, guint timeout)
 {
     GError *error = NULL;
-    GDBusConnection *connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
+    GDBusConnection *connection = g_bus_get_sync (GSIGNOND_BUS_TYPE, NULL, &error);
 
     if (error) {
         ERR("failed to connect to session bus : %s", error->message);