GJS bindings return 'empty' devices from get_devices2()
Not sure if this is the right project, as it's a problem with the GJS bindings, or me not using them correctly.
Running get_devices2()
returns the correct number of devices, but every property is undefined. get_devices()
works fine.
Easiest way to reproduce using the GNOME looking glass dropdown:
testClient = imports.gi.UPowerGlib.Client.new_full()
testClient.get_devices2()[0].model
Gives undefined
. Running the same code with get_devices()
returns an actual model name.