Ticket #6248 (assigned defect)
Presence service broken with NetworkManager-0.7 (NM D-Bus API change)
| Reported by: | marco | Owned by: | morgs |
|---|---|---|---|
| Priority: | high | Milestone: | 9.1.0-cancelled |
| Component: | presence-service | Version: | olpc-3 |
| Keywords: | 8.2.0:- 9.1.0:? r+ | Cc: | dcbw, mstone, mbletsas, morgs, bjordan, gregorio, mikus@…, Collabora, erikos |
| Action Needed: | package | Verified: | no |
| Deployments affected: | Blocked By: | ||
| Blocking: |
Description
I'm testing with 0.7.0. No buddies on the mesh view and no telepathy-gabble.log is created.
The presence service log shows that the getDevices call is failing (the method has been renamed to GetDevices apparently). It looks like the network manager Dbus interface changed quite a bit, because getProperties is not working anymore either.
As a quick workaround:
diff --git a/src/psutils.py b/src/psutils.py
index 6b8ec95..ae705f4 100644
--- a/src/psutils.py
+++ b/src/psutils.py
@@ -154,9 +154,8 @@ class IP4AddressMonitor(gobject.GObject):
sys_bus = dbus.SystemBus()
self._watch = sys_bus.watch_name_owner(NM_SERVICE, self._nm_owner_cb)
- if not sys_bus.name_has_owner(NM_SERVICE):
- addr = self._get_address_fallback()
- self._update_address(addr)
+ addr = self._get_address_fallback()
+ self._update_address(addr)
def do_get_property(self, pspec):
if pspec.name == "address":
Interesting comment in the code:
class IP4AddressMonitor(gobject.GObject):
"""This class, and direct buddy IPv4 address access, will go away quite soon"""
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


