[Dicson] try to run geoclue service id it's not running. Fixes #5715

This commit is contained in:
Yann Leboulanger 2010-04-24 09:21:09 +02:00
parent 9081b465ed
commit a359b06912

View file

@ -38,9 +38,8 @@ class LocationListener:
def get_data(self):
bus = dbus.SessionBus()
if 'org.freedesktop.Geoclue.Master' not in bus.list_names():
self._on_geoclue_position_changed()
return
try:
# Initializes Geoclue.
obj = bus.get_object('org.freedesktop.Geoclue.Master',
'/org/freedesktop/Geoclue/Master')
# get MasterClient path
@ -51,6 +50,10 @@ class LocationListener:
self._get_address(cli)
self._get_position(cli)
except:
self._on_geoclue_position_changed()
return
def _get_address(self, cli):
bus = dbus.SessionBus()