Missing org.freedesktop.UDisks signals (DBus 2.7 and Java)

mazzzta mazzzta mazzzta2 at gmail.com
Wed Sep 11 01:26:17 PDT 2013


That makes sense. I thought at first that using DBusInterface was the only
way of doing things in Java/DBus.

Thanks.


On Tue, Sep 10, 2013 at 4:26 PM, Matthew Johnson <dbus at matthew.ath.cx>wrote:

> On Mon Sep 09 12:29, mazzzta mazzzta wrote:
> > Hi Matt,
> >
> > "If you plug it in again, does it give you another "Device added!" or is
> it
> > now wedged in some fashion?"
> > No, if I plugged it again I still got a "Device added!" message. It is
> > DeviceRemoved the one I never got.
> >
> > From your new code the change of DBusInterface to Path seems to work for
> me
> > now. However I'm still not able to make it work using DBusInterface.
> > Luckily I only need to detect when a signal is sent and nothing else, so
> > your code is enough for my purpose, however I believe that If I'd need
> the
> > data provided by DBusInterface I would have been stuck again.
>
> You can always turn a path into a DBusInterface, but doing so makes an
> introspection request of the source. If that doesn't exist (because it's
> disconnected, a-la dbus-send) or because it just doesn't send a response,
> then
> the handler won't get called, since it can't create the stub. Therefore
> it's
> always better to use Path at first. Using DBusInterface is just a
> convenience
> and has some limitations.
>
> HTH,
> Matt
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iQIcBAEBCgAGBQJSLyv2AAoJEKVC9ua3o6NmPfoP/1EsTTxyHf6PDPsPsf2xvifA
> NmtsPZNT5aZFHj0gkpjs7E6M6YaS5RTSJCo7g5qpRFR7lTBFcA0Kom0L6aQOli61
> FeGyAsiAynVfh9yECusDH0RymfWirN12wcKly8pHZWXo6MMNv+G10RrTDy3QiWAA
> i7T7q17NpuF5SZ6bYFPapaqwZpyXXdgulO5AuqlcthxLMkL0hMk83CyndvFXNCrb
> 6cNTZ5dbVSa0Lm6UarOavE6lZmmoWXJrRshQOLcutl+KFDOKqLEtihJzK/UP93RP
> NfnRMeId46tPMhM6tVEVj/3UMQDp3Ns6RfnpHZ/3DsM2E0iq2QEX4f2YyWNv0LU+
> duxIo695WVwpCoGn2Ey9/6RVklLVaWgd8/29JONsyCYUxFvk7s5FrwWhT0L4HaX+
> Qnw8Sac3VBeLotDhCLMQz7DA8c0bQZcsxmBqg0/MsrFZIYQevw2nxpiEHT3GdT2o
> LKwRdQAtUJVuMfnb6MwtRv3bVkFrYCyNWj+806MZijjo4BZVcMChA9TMz2nerR0M
> 3Lu4i76d0YFtKyAksOVePLjn48l36LBOP8w+MxTVWYUdgYC8E49WYubP7RCbdciN
> Mz2IMPik+MC/oNmRETDfKZqLoMEHvYZKFYpfAdYxh0MgpMaxe7TEG4opE2FVnGoo
> IYU6G8yDs/iDN93WlEys
> =lmC0
> -----END PGP SIGNATURE-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130911/1c9d3995/attachment.html>


More information about the dbus mailing list