If the target application is acquiring a dbus service then at least you can connect to NameOwnerChanged Signal and keep a track of the service name registered from which at least u can find the executable name by some hacks. (i can provide u those if needed)<br>
<br>--<br>Regards<br>silverroots<br><br><div class="gmail_quote">On Sat, Sep 12, 2009 at 8:29 AM, cbx <span dir="ltr"><<a href="mailto:bnucbx@gmail.com">bnucbx@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,all!<br>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?<br><br>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.<br>
<br>I tried to use<cite> org.freedesktop.Dbus.</cite>NameAcquired, but it seems this signal is not for this purpose.<br><br>Thank you!<br>
<br>_______________________________________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
<br></blockquote></div><br>