<div dir="ltr">That makes sense. I thought at first that using DBusInterface was the only way of doing things in Java/DBus. <br><br>Thanks.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 10, 2013 at 4:26 PM, Matthew Johnson <span dir="ltr"><<a href="mailto:dbus@matthew.ath.cx" target="_blank">dbus@matthew.ath.cx</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon Sep 09 12:29, mazzzta mazzzta wrote:<br>
> Hi Matt,<br>
><br>
> "If you plug it in again, does it give you another "Device added!" or is it<br>
> now wedged in some fashion?"<br>
> No, if I plugged it again I still got a "Device added!" message. It is<br>
> DeviceRemoved the one I never got.<br>
><br>
> From your new code the change of DBusInterface to Path seems to work for me<br>
> now. However I'm still not able to make it work using DBusInterface.<br>
> Luckily I only need to detect when a signal is sent and nothing else, so<br>
> your code is enough for my purpose, however I believe that If I'd need the<br>
> data provided by DBusInterface I would have been stuck again.<br>
<br>
</div>You can always turn a path into a DBusInterface, but doing so makes an<br>
introspection request of the source. If that doesn't exist (because it's<br>
disconnected, a-la dbus-send) or because it just doesn't send a response, then<br>
the handler won't get called, since it can't create the stub. Therefore it's<br>
always better to use Path at first. Using DBusInterface is just a convenience<br>
and has some limitations.<br>
<br>
HTH,<br>
Matt<br>
<br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
<br>
iQIcBAEBCgAGBQJSLyv2AAoJEKVC9ua3o6NmPfoP/1EsTTxyHf6PDPsPsf2xvifA<br>
NmtsPZNT5aZFHj0gkpjs7E6M6YaS5RTSJCo7g5qpRFR7lTBFcA0Kom0L6aQOli61<br>
FeGyAsiAynVfh9yECusDH0RymfWirN12wcKly8pHZWXo6MMNv+G10RrTDy3QiWAA<br>
i7T7q17NpuF5SZ6bYFPapaqwZpyXXdgulO5AuqlcthxLMkL0hMk83CyndvFXNCrb<br>
6cNTZ5dbVSa0Lm6UarOavE6lZmmoWXJrRshQOLcutl+KFDOKqLEtihJzK/UP93RP<br>
NfnRMeId46tPMhM6tVEVj/3UMQDp3Ns6RfnpHZ/3DsM2E0iq2QEX4f2YyWNv0LU+<br>
duxIo695WVwpCoGn2Ey9/6RVklLVaWgd8/29JONsyCYUxFvk7s5FrwWhT0L4HaX+<br>
Qnw8Sac3VBeLotDhCLMQz7DA8c0bQZcsxmBqg0/MsrFZIYQevw2nxpiEHT3GdT2o<br>
LKwRdQAtUJVuMfnb6MwtRv3bVkFrYCyNWj+806MZijjo4BZVcMChA9TMz2nerR0M<br>
3Lu4i76d0YFtKyAksOVePLjn48l36LBOP8w+MxTVWYUdgYC8E49WYubP7RCbdciN<br>
Mz2IMPik+MC/oNmRETDfKZqLoMEHvYZKFYpfAdYxh0MgpMaxe7TEG4opE2FVnGoo<br>
IYU6G8yDs/iDN93WlEys<br>
=lmC0<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div><br></div>