[Interest] How do i monitor DBus functions (not signals)

Mark Gaiser markg85 at gmail.com
Thu Jan 14 10:05:35 CET 2016


Op 13 jan. 2016 11:15 p.m. schreef "Thiago Macieira" <
thiago.macieira at intel.com>:
>
> On Wednesday 13 January 2016 21:19:33 Mark Gaiser wrote:
> > Hi,
> >
> > I'm trying to monitor "org.freedesktop.Notifications" for the
notifications
> > (see [1] for reference) that broadcasted from there. Every notification
> > ends up in a "Notify" method on that dbus interface.
>
> Hi Mark. "Monitoring" in D-Bus usually means running dbus-monitor and you
do
> that for debugging purposes. I don't think that's what you mean.
>
> Do you mean listening to signals? If you mean that, there's no "method"
> (a.k.a. a slot), only "signal".

Hi Thiago,

I want my app to get all notifications that are being passed through
org.freedesktop.Notifications without the app itself registering as
"org.freedesktop.Notifications" service.
I'm not sure about the best approach for that.. Do you happen to know what
might work?

>
> > I'm trying to monitor that, but kinda fail at it... I can monitor the
> > notifications with dbus-monitor
> >
"interface='org.freedesktop.Notifications',member='Notify',type='method_call
> > ',eavesdrop='true'", doing the same in code is not firing the slot i'd
like
> > it to call..
>
> Eavesdrop implies debugging. QtDBus will not do this, no matter how much
you
> try. Forget it.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160114/22770e8a/attachment.html>


More information about the Interest mailing list