Modify the pid and gid of bt-service to network_fw
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / bt-service-obex-agent.c
index f8f3af7..879edcc 100644 (file)
@@ -395,7 +395,7 @@ void _bt_obex_agent_new(char *path)
        GError *error = NULL;
 
        if (conn == NULL) {
-               conn = g_bus_get_sync(G_BUS_TYPE_SESSION, NULL, &error);
+               conn = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &error);
                if (error != NULL) {
                        BT_ERR("Fail to get dbus: %s", error->message);
                        g_error_free(error);
@@ -453,7 +453,7 @@ gboolean _bt_obex_setup(const char *path)
 
        retv_if(info == NULL, FALSE);
 
-       proxy = g_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SESSION,
+       proxy = g_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SYSTEM,
                                G_DBUS_PROXY_FLAGS_NONE,
                                NULL,
                                BT_OBEX_SERVICE_NAME,