[PATCH] geoclue/geoclue-provider.c: Honor GEOCLUE_DBUS_BUS
Bernhard.Guillon at hale.at
Bernhard.Guillon at hale.at
Tue Aug 2 02:53:49 PDT 2011
From: Bernhard Guillon <Bernhard.Guillon at hale.at>
Signed-off-by: Bernhard Guillon <Bernhard.Guillon at hale.at>
---
geoclue/geoclue-provider.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/geoclue/geoclue-provider.c b/geoclue/geoclue-provider.c
index 57e7b3b..98a613b 100644
--- a/geoclue/geoclue-provider.c
+++ b/geoclue/geoclue-provider.c
@@ -55,6 +55,7 @@
* information about the provider and to set provider
* options.
*/
+#include <config.h>
#include <geoclue/geoclue-provider.h>
#include "gc-iface-geoclue-bindings.h"
@@ -168,7 +169,7 @@ constructor (GType type,
provider = GEOCLUE_PROVIDER (object);
priv = GET_PRIVATE (provider);
- connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
+ connection = dbus_g_bus_get (GEOCLUE_DBUS_BUS, &error);
if (connection == NULL) {
g_printerr ("Failed to open connection to bus: %s\n",
error->message);
--
1.7.0.4
--
Scanned by MailScanner.
More information about the GeoClue
mailing list