summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoung-Ae Kang <youngae.kang@samsung.com>2015-08-17 07:01:17 (GMT)
committerYoung-Ae Kang <youngae.kang@samsung.com>2015-08-18 05:16:34 (GMT)
commitb1ad881d50f5ed6c1abee43baacb3cddd1311ade (patch)
tree7a34617646dd18f3dfe618ce1ac9a1c29f8305b6
parent5af8f5161212ad7fa0812d928eb684e5d821760c (diff)
downloadgeofence-dbus-b1ad881d50f5ed6c1abee43baacb3cddd1311ade.zip
geofence-dbus-b1ad881d50f5ed6c1abee43baacb3cddd1311ade.tar.gz
geofence-dbus-b1ad881d50f5ed6c1abee43baacb3cddd1311ade.tar.bz2
Signed-off-by: Young-Ae Kang <youngae.kang@samsung.com> Change-Id: I09c1e84d9ce7b1224c2382e8716b03ad29674119
-rw-r--r--geofence/src/geofence_client.c6
-rw-r--r--packaging/geofence-dbus.spec2
-rw-r--r--server/src/geofence_dbus_server.c2
3 files changed, 3 insertions, 7 deletions
diff --git a/geofence/src/geofence_client.c b/geofence/src/geofence_client.c
index a37ea4f..0e25521 100644
--- a/geofence/src/geofence_client.c
+++ b/geofence/src/geofence_client.c
@@ -517,12 +517,8 @@ static int __geofence_client_create_connection(geofence_client_dbus_s *client)
g_return_val_if_fail(client, GEOFENCE_CLIENT_ERROR_PARAMETER);
GError *error = NULL;
-#if 0
- client->conn = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &error);
-#endif
-
char *bus_addr = NULL;
- bus_addr = g_dbus_address_get_for_bus_sync(G_BUS_TYPE_SYSTEM, NULL, &error);
+ bus_addr = g_dbus_address_get_for_bus_sync(G_BUS_TYPE_SESSION, NULL, &error);
if (!bus_addr) {
GEOFENCE_CLIENT_LOGD("Fail to get addr of bus.");
return GEOFENCE_CLIENT_ERROR_CONNECTION;
diff --git a/packaging/geofence-dbus.spec b/packaging/geofence-dbus.spec
index 7022abb..a8ab983 100644
--- a/packaging/geofence-dbus.spec
+++ b/packaging/geofence-dbus.spec
@@ -1,6 +1,6 @@
Name: geofence-dbus
Summary: Dbus interface for Geofence service
-Version: 0.3.0
+Version: 0.3.1
Release: 1
Group: Location/Libraries
License: Apache-2.0
diff --git a/server/src/geofence_dbus_server.c b/server/src/geofence_dbus_server.c
index 3e86c03..f3a6bd1 100644
--- a/server/src/geofence_dbus_server.c
+++ b/server/src/geofence_dbus_server.c
@@ -493,7 +493,7 @@ EXPORT_API int geofence_dbus_server_create(geofence_dbus_server_h *geofence_dbus
/* set gefence callbacks */
server->dbus_callback = geofence_dbus_callback;
- server->owner_id = g_bus_own_name(G_BUS_TYPE_SYSTEM, server->service_name, G_BUS_NAME_OWNER_FLAGS_REPLACE, on_bus_acquired, on_name_acquired, on_name_lost, server, NULL);
+ server->owner_id = g_bus_own_name(G_BUS_TYPE_SESSION, server->service_name, G_BUS_NAME_OWNER_FLAGS_REPLACE, on_bus_acquired, on_name_acquired, on_name_lost, server, NULL);
GEOFENCE_DBUS_SERVER_LOGD("g_bus_own_name id=[%d]", server->owner_id);
*geofence_dbus_server = (geofence_dbus_server_s *) server;