[gnome-settings-daemon] datetime: Provide desktop id to geoclue



commit 501bad04df89093b022a2051e7a31bf8ebf8ddc4
Author: Kalev Lember <kalevlember gmail com>
Date:   Mon Feb 3 13:44:11 2014 +0100

    datetime: Provide desktop id to geoclue
    
    Geoclue 3.11.x needs to know the desktop file name of the application
    to make authorization work.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722623

 plugins/datetime/gsd-timezone-monitor.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/datetime/gsd-timezone-monitor.c b/plugins/datetime/gsd-timezone-monitor.c
index bad3a08..c762ee5 100644
--- a/plugins/datetime/gsd-timezone-monitor.c
+++ b/plugins/datetime/gsd-timezone-monitor.c
@@ -29,6 +29,7 @@
 #include <geocode-glib/geocode-glib.h>
 #include <polkit/polkit.h>
 
+#define DESKTOP_ID "gnome-datetime-panel"
 #define SET_TIMEZONE_PERMISSION "org.freedesktop.timedate1.set-timezone"
 
 enum {
@@ -338,6 +339,7 @@ on_client_proxy_ready (GObject      *source_object,
                 return;
         }
 
+        geoclue_client_set_desktop_id (priv->geoclue_client, DESKTOP_ID);
         geoclue_client_set_distance_threshold (priv->geoclue_client,
                                                GEOCODE_LOCATION_ACCURACY_CITY);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]