Now that we're changing this code we can simplify it even more. The Python 
'dbus' module has methods request_name() and name_has_owner() built directly 
into the SessionBus singleton, ie:

bus = dbus.SessionBus()
if bus.name_has_owner("org.Foo") : do_blah()
else: bus.request_name("com.Bleh")

 - you get the idea...
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/dbus-paranoia/+merge/53301
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~zeitgeist/zeitgeist/dbus-paranoia into lp:zeitgeist.

_______________________________________________
Mailing list: https://launchpad.net/~zeitgeist
Post to     : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp

Reply via email to