Way to show programs receiving dbus-signal ?

Alban Crequy alban.crequy at collabora.co.uk
Tue May 29 06:44:35 PDT 2012


Le Mon, 14 May 2012 18:43:47 +0200,
Thiago Macieira <thiago at kde.org> a écrit :

> On segunda-feira, 14 de maio de 2012 23.44.10, 007900800083 at citiz.net
> wrote:
> > Hi dbus maillist friends:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > <br>&nbsp; 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 &amp; 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=24307

Best regards,
Alban


More information about the dbus mailing list