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

Kaustubh Atrawalkar kaustubh.ra at gmail.com
Fri Sep 11 22:27:23 PDT 2009


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)

--
Regards
silverroots

On Sat, Sep 12, 2009 at 8:29 AM, cbx <bnucbx at gmail.com> wrote:

> Hi,all!
> 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!
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20090912/c0d03c2f/attachment.htm 


More information about the dbus mailing list