Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/model/buddy.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/jarabe/model/buddy.py')
-rw-r--r--src/jarabe/model/buddy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jarabe/model/buddy.py b/src/jarabe/model/buddy.py
index 6cf7be9..b905e7e 100644
--- a/src/jarabe/model/buddy.py
+++ b/src/jarabe/model/buddy.py
@@ -129,7 +129,7 @@ class OwnerBuddyModel(BaseBuddyModel):
bus_object = bus.get_object(dbus.BUS_DAEMON_NAME, dbus.BUS_DAEMON_PATH)
for service in bus_object.ListNames(
dbus_interface=dbus.BUS_DAEMON_IFACE):
- if service.startswith('org.freedesktop.Telepathy.Connection.'):
+ if service.startswith(CONNECTION + '.'):
path = '/%s' % service.replace('.', '/')
Connection(service, path, bus,
ready_handler=self.__connection_ready_cb)
@@ -138,7 +138,7 @@ class OwnerBuddyModel(BaseBuddyModel):
self._sync_properties_on_connection(connection)
def __name_owner_changed_cb(self, name, old, new):
- if name.startswith(CONNECTION) and not old and new:
+ if name.startswith(CONNECTION + '.') and not old and new:
path = '/' + name.replace('.', '/')
Connection(name, path, ready_handler=self.__connection_ready_cb)