How to cope with restarted service?

Will Thompson will.thompson at
Mon Jan 31 05:13:40 PST 2011

On 27/01/11 20:43, Pavel Strashkin wrote:
> To use
> "follow_name_owner_changes" you must setup main loop before or
> get_object(...) will raise an exception.
> bus = dbus.bus.BusConnection('...')
> svc = bus.get_object('...', follow_name_owner_changes=True)

Notwithstanding Havoc's excellent summary of the kinds of APIs where 
this is appropriate, and those where you have to do more work, the above 
sounds like a bug in dbus-python, or at least something it could handle 
better. You could file a bug over here: 


More information about the dbus mailing list