Hostip geolocation provider does not return position info

Bug #1239082 reported by David Planella
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Qreator
Triaged
Low
Unassigned

Bug Description

While we're using geoclue-ubuntu-geoip for detecting the current position in the location QR code, we have a fallback to using geoclue-hostip for other distros that don't have geoclue-ubuntu-geoip available (e.g. Fedora).

However, when testing Hostip, it seems to return no location data at all. For the test, I just swapped providers in the QRCodeLocationGtk.py file:

    try:
        geoclue = bus.get_object(
            'org.freedesktop.Geoclue.Providers.Hostip',
            '/org/freedesktop/Geoclue/Providers/Hostip')
        print "Got Hostip geoclue provider"
    except dbus.exceptions.DBusException:
        geoclue = bus.get_object(
            'org.freedesktop.Geoclue.Providers.UbuntuGeoIP',
            '/org/freedesktop/Geoclue/Providers/UbuntuGeoIP')
        print "Got Ubuntu GeoIP geoclue provider"

And then the position_info fields related to latitude and longitude are empty.

David Planella (dpm)
Changed in qreator:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Mark Russell (marrusl) wrote :

It's not clear that geoclue-ubuntu-geoip is working at all. It's not listed on this page:

http://www.freedesktop.org/wiki/Software/GeoClue/Providers/

redshift auto-detection has been broken for a long time (see LP bug 868904) and now it seems that this is why.

Revision history for this message
David Planella (dpm) wrote :

Thanks Mark. However, this bug is about geoclue-hostip, and not about geoclue-ubuntu-geoip

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.