[Python-modules-team] Bug#934743: python-networkmanager: org.freedesktop.DBus.Error.ServiceUnknown if NetworkManager service restarts

Simon McVittie smcv at debian.org
Wed Aug 14 10:40:05 BST 2019


On Wed, 14 Aug 2019 at 11:19:31 +0200, Ana Rodriguez Lopez wrote:
> If NetworkManager service restarts, it gets a new dbus unix process id.

The term you're looking for here is "D-Bus unique name".

> The parameter follow_name_owner_changes can be used in get_object()
> calls to prevent this.

FYI this is only valid if the proxy either doesn't remember the state
of the remote object, or forgets that state when the name owner's unique
name changes, which is why it isn't the default. (I don't know whether
NM's D-Bus API is stateful or stateless, so I can't say whether this
patch is correct or not.)

    smcv



More information about the Python-modules-team mailing list