Missing org.freedesktop.UDisks signals (DBus 2.7 and Java)
mazzzta mazzzta
mazzzta2 at gmail.com
Mon Sep 9 03:29:48 PDT 2013
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.
I do not really see why the DeviceRemoved is not properly caught by
DBusInterface. I wouldn't say it's a D-Bus bug that fast though since the
signal is sent. Could it be something related to the OS (Ubuntu 12)? Other
process interferences? a local missconfiguration of the config files? (I
haven't tweak them, as they remain to the defaults)... I'm quite lost here.
Anyways, thanks very much.
On Sat, Sep 7, 2013 at 12:30 PM, Matthew Johnson <dbus at matthew.ath.cx>wrote:
> Hi mzt,
>
> I've just run this (attached) little test and it seems to work fine. I'm
> using dbus-send to generate the signals and so I had to change
> DBusInterface to Path in the signals. Path just gives you the string
> representation, whereas DBusInterface does some magic introspection on the
> bus to give you a dynamic object. I don't think you need that, however, so
> try making the same change and see if that helps.
>
> Matt
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iQIcBAEBCgAGBQJSKwBfAAoJEKVC9ua3o6NmMswQAMDxKsBZIAtLuFLX9bVlqcY4
> P11fa68ccHUnLn0IcToGX46dM6s6poAN735ukaIGmhe7Crrfsws/AJXAHAxR6AJj
> nxEPjxrRpu5kU98zhfFmwCrxzN5fgGday2OLkdmw0FWWFhJkvK+6J1EjXsAwb9fq
> 6es2JoJuaBhp3oktbNACcr3iTTeVl/ORs3cB4Rzu8YeVBglPZn5OKifPatYgoBU1
> 7Ra1vM1Dz5mfkaKI0lQP6Iy3OM7gddj8D+xknedet8Ax8iK1aAXsSeb+Pf21gTsE
> 6V4Ru145ng9zGJ2e8RQUMfz/qans/kL4YHMyL3K28r/zVDQzb1kpB/ohV05zC8ZA
> rZK00Uu8WiimRbKgZAwgyoMXUAEZYswkPHFOQLSKHMDnK/AI8ntdPMJe7YFQfcqA
> Klnc2v/EGvkUfZHMkO/jZ/Xb2MkqRHcuSq5Gor7kNGMCFx3WcBDGb05Qy6oxuP9D
> u6m3/FiaQHMnUMqfn/TpYP9aoDo1GDZXGSAmeEn5HOCD6Xyii3KNk8Ka1uVwSG0+
> olv+/Hn/IUVcmEA/kFMC8hFRP1xqkRNgmad1iHZMSFfibvtGbf5VjVxj3gAeQRaX
> 8L7JBb+MAU3522jONjCS/T7Tm9tBxEr+0leSDjKJgqTgEywbPoy/2GGvJpzYIPMZ
> zpLexXjHHAiaX9hO0e0I
> =xnel
> -----END PGP SIGNATURE-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130909/fd840323/attachment.html>
More information about the dbus
mailing list