On Sat, 2006-12-16 at 17:53 -0800, Bastian, Waldo wrote: > John, > > See the reference below to DBUS sessions. Doesn't DBUS have the ability > to inform any client about connects and disconnects of other clients to > the bus?
So yes, you can track any service on the bus by simply listening for NameOwnerChanged signals. The NameOwnerChanged signal has three parameters, bus name, old owner's unique name, new owner's unique name. If the old owner is an empty string then it is a new name on the bus. If the new owner is an empty string then the name has dropped off the bus. If both are populated then the name has moved from the old owner to the new owner. Make sure you only listen to signals you care about or your app will continually wake up every time a signal is sent which is bad for battery life on laptops. You can do signal matching on parameters (arg0= arg1= ... arg9=) to restrict what signals you receive. -- John (J5) Palmieri <[EMAIL PROTECTED]> _______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
