From: Bernhard Guillon <[email protected]>

Signed-off-by: Bernhard Guillon <[email protected]>
---
 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.

_______________________________________________
GeoClue mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/geoclue

Reply via email to