WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: e geolocation module doesn't work  (Read 3049 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
e geolocation module doesn't work
« on: July 29, 2015, 05:22:38 AM »
Hi
e geolocation module uses geoclue-2.0 package but it doesn't work, any help?
Thanks
dCore user

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: e geolocation module doesn't work
« Reply #1 on: July 29, 2015, 06:31:44 AM »
do you need to use dconf-editor to enable it - I believe that geolocation is disabled by default?

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: e geolocation module doesn't work
« Reply #2 on: July 29, 2015, 07:57:23 AM »
In what way does it not work? 

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: e geolocation module doesn't work
« Reply #3 on: July 31, 2015, 10:23:03 AM »
Code: [Select]
sudo  /usr/local/tce.installed/geoclue-2.0 configure
./geoclue-2.0: line 29: getent: not found
so I installed libc-bin because that command is there.
looking at  the content of : /usr/share/dbus-1/system-services/org.freedesktop.GeoClue2.service:
[D-BUS Service]
Name=org.freedesktop.GeoClue2
Exec=/usr/lib/geoclue-2.0/geoclue -t 5
User=geoclue

I tried to exexute:
Code: [Select]
/usr/lib/geoclue-2.0/geoclue
(geoclue:13652): Geoclue-CRITICAL **: Failed to acquire name 'org.freedesktop.GeoClue2' on system bus or lost it.

same with sudo
dCore user

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: e geolocation module doesn't work
« Reply #4 on: August 01, 2015, 11:17:32 AM »
On corepure64 I get this:
Code: [Select]
$ sudo G_MESSAGES_DEBUG=Geoclue /usr/local/lib/geoclue-2.0/geoclue -t 60
(geoclue:18455): Geoclue-DEBUG: Available accuracy level from GClueWifi: 4
(geoclue:18455): Geoclue-DEBUG: WiFi device 'wlan0' added.
(geoclue:18455): Geoclue-DEBUG: Available accuracy level from GClueWifi: 6
(geoclue:18455): Geoclue-DEBUG: New agent for user ID '1001'
(geoclue:18455): Geoclue-DEBUG: Number of connected clients: 1
(geoclue:18455): Geoclue-DEBUG: Service now in use
(geoclue:18455): Geoclue-DEBUG: GClueLocator now active
(geoclue:18455): Geoclue-DEBUG: GClueWifi now active
(geoclue:18455): Geoclue-DEBUG: Not starting GClue3G (accuracy level: 0). Requested accuracy level: 8.
(geoclue:18455): Geoclue-DEBUG: Not starting GClueCDMA (accuracy level: 0). Requested accuracy level: 8.
(geoclue:18455): Geoclue-DEBUG: Not starting GClueModemGPS (accuracy level: 0). Requested accuracy level: 8.
(geoclue:18455): Geoclue-DEBUG: 'org.gnome.Maps' started.
(geoclue:18455): Geoclue-DEBUG: WiFi AP 'Livebox-1250' added.
(geoclue:18455): Geoclue-DEBUG: WiFi AP 'Livebox-1250' added.
(geoclue:18455): Geoclue-DEBUG: Refreshing location..
(geoclue:18455): Geoclue-DEBUG: Network available
(geoclue:18455): Geoclue-DEBUG: Sending following request to 'https://location.services.mozilla.com/v1/geolocate?key=geoclue':
{"wifiAccessPoints":[{"macAddress":"00:19:70:af:ae:26","signalStrength":-84}]}


(geoclue:18455): GLib-Net-WARNING **: The anchor file name for used with a GTlsFileDatabase must be an absolute path, and not relative: path=/usr/local/etc/ssl/certs/ca-certificates.crt

(geoclue:18455): Geoclue-WARNING **: Failed to query location: Unacceptable TLS certificate

..when starting gnome-maps and clicking on the "my location" icon. The same thing happens when using an html5 location services test with epiphany.

I've seen this sort of error before and wonder if the code expects the certs file under /tmp/tcloop?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: e geolocation module doesn't work
« Reply #5 on: August 01, 2015, 11:45:55 AM »
tested with copy2fs.flg set and the problem persists.

The geoclue dev says either https is broken on libsoup or the certificate is too old, but I doubt that's the issue with dcore?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: e geolocation module doesn't work
« Reply #6 on: August 01, 2015, 12:23:29 PM »
I just found the problem in glib-networking in corepure64 (typo in ./configure switch), but I somehow doubt that solves your dcore problem  :(

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: e geolocation module doesn't work
« Reply #7 on: August 08, 2015, 08:19:36 PM »
Thanks Juanito, I am not familiar with this package but I will use this information and see if I can figure something out on why it doesn't work here.