[gnome-maps] Set DesktopId property on GeoClue client
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] Set DesktopId property on GeoClue client
- Date: Mon, 20 Jan 2014 15:19:26 +0000 (UTC)
commit 6e7d32e21135b9ee11b577c9567ea6cdc508642b
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Jan 20 15:17:34 2014 +0000
Set DesktopId property on GeoClue client
This prop is now required to be set for authorization reasons.
https://bugzilla.gnome.org/show_bug.cgi?id=722374
src/geoclue.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/geoclue.js b/src/geoclue.js
index 569b144..1f60c99 100644
--- a/src/geoclue.js
+++ b/src/geoclue.js
@@ -46,6 +46,7 @@ const ManagerProxy = Gio.DBusProxy.makeProxyWrapper(ManagerInterface);
const ClientInterface = '<node> \
<interface name="org.freedesktop.GeoClue2.Client"> \
<property name="Location" type="o" access="read"/> \
+ <property name="DesktopId" type="s" access="readwrite"/> \
<property name="DistanceThreshold" type="u" access="readwrite"/> \
<method name="Start"/> \
<method name="Stop"/> \
@@ -126,6 +127,7 @@ const Geoclue = new Lang.Class({
this._clientProxy = new ClientProxy(Gio.DBus.system,
"org.freedesktop.GeoClue2",
clientPath);
+ this._clientProxy.DesktopId = "gnome-maps";
if (!this.userSetLocation)
this.findLocation();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]