Closed genosse-einhorn closed 10 years ago
In: .... Gio.DBusObjectManagerClient.new(Gio.DBus.system, 0, "org.freedesktop.UDisks2", "/org/freedesktop/UDisks2", null, null, function(src, res) { ....
Error invoking Gio.new_for_bus: Invalid callback given for argument get_proxy_type_func
get_proxy_type_func, is the first parameter that have null.
Thanks for your code @rgcjonas.
@lestcape: I can't reproduce this.
Yeah, I try to reproduce the code in one gjs file, maybe i need import other things, or some things i don't know. I use Cinnamon, not gnome. See:
https://github.com/lestcape/Drives-Manager/blob/master/drivesManager%40lestcape/udisk.js
Apparently the problem is that I want to do, is not supporting in Ubuntu 12.04. In Ubuntu 13.10 works well. Cinnamon no incluye udisks2 directly like GNome-Shell. Thanks.
12.04 has udisks (the first version). udisks2 has been introduced in 12.10.
Udisks provides access to the hard drive temperature sensor via a stable D-Bus interface. This patch enables the extension to query udisks for temperature data.