Comment # 28 on bug 1176553 from
(In reply to Jonathan Kang from comment #27)
> But later on NetworkManager implemented `NMDevice.get_path()` and it's
> designed
> to return the actual pci path for that device interface. So gnome-shell
> should
> call `nm_object_get_path()` on the NMDevice instead to get the expected
> value.

For C code we can use this way to get dbus path,
> nm_object_get_path(NM_OBJECT(device))
But for JS code it's impossible to do it like that. NMDevice needs to support
nm_device_get_parent or nm_device_get_object to get NMObject, then do
NMObject.get_path() to get dbus path.

Maybe NMDevice can add a function nm_device_get_dbus_path to get dbus path
directly.


You are receiving this mail because: