Hi dbus maillist friends:  _place_holder; _place_holder; _place_holder; _place_holder;&n bsp_place_holder;  _place_holder; I'm searching a way to get which programs or processes have interested in specific dbus-signal, given by name,interface of dbus-signal. It's helpful for seeing system's status & debugging. Does someone kindly tell me whether there is a simple way or deep into source code of dbus? Thanks. Cheers Liang.
On segunda-feira, 14 de maio de 2012 23.44.10, wrote:
> Hi dbus maillist friends:<br> <br>
> I&aps;m searching a way to get which programs or processes have interested
> in specific dbus-signal,<br>given by name,interface of dbus-signal.
> It&aps;s helpful for seeing system&aps;s status & debugging. <br>Does
> someone kindly tell me whether there is a simple way or deep into source
> code of dbus? Thanks.<br><br>Cheers<br>Liang.<br><br> <br>First of all, please don't write HTML-only email. I'd recommend avoiding HTML
completely, since the text portion of your email is what counts.
Second, I'm sorry but there's no way to retrieve the information about which
connections have demonstrated interest in a particular signal.
If you really wish to get this information, you can modify the daemon so that
you can retrieve the list of match rules and the connections they apply to.
Then use the rules to determine which connections are interested in those
signals. Note that rules like "type='signal'" will match for any and all
signals.
Le Mon, 14 May 2012 18:43:47 +0200, Thiago Macieira a écrit : > On segunda-feira, 14 de maio de 2012 23.44.10, > wrote: > > Hi dbus maillist friends:<br> > > <br> I&aps;m searching a way to get which programs or > > processes have interested in specific dbus-signal,<br>given by > > name,interface of dbus-signal. It&aps;s helpful for seeing > > system&aps;s status & debugging. <br>Does someone kindly tell > > me whether there is a simple way or deep into source code of dbus? > > Thanks.<br><br>Cheers<br>Liang.<br><br> <br> > > First of all, please don't write HTML-only email. I'd recommend > avoiding HTML completely, since the text portion of your email is > what counts. > > Second, I'm sorry but there's no way to retrieve the information > about which connections have demonstrated interest in a particular > signal. > > If you really wish to get this information, you can modify the daemon > so that you can retrieve the list of match rules and the connections > they apply to. Then use the rules to determine which connections are > interested in those signals. Note that rules like "type='signal'" > will match for any and all signals.There is this bit-rotting patch to retrieve the list of match rules: https://bugs.freedesktop.org/show_bug.cgi?id=... Best regards, Alban