how to be notified when an application with dbus service lauchs or quits?

cbx bnucbx at
Fri Sep 11 19:59:07 PDT 2009

I want to know if there is any way to get notified when an application
lauchs or quits.May be there exists something like a signal?

Say,after my program connect to the dbus,if Rhythmbox(as an example) lauchs,
my program can receive an signal.And then if rhythmbox closes later,another
signal will be sent.

I tried to use org.freedesktop.Dbus.NameAcquired, but it seems this signal
is not for this purpose.

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the dbus mailing list