The patch already went upstream in NetworkManager and now we have an Ubuntu package landing soon.
The upshot is that we now have a simple DBus property:
system org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.PrimaryConnectionType
which is a string like '802-11-wireless' or 'bluetooth'. If there is no connection then it is an empty string.
We don't have normal D-Bus property change notification here but rather a custom-rolled signal from NetworkManager itself (PropertiesChanged).
The patch already went upstream in NetworkManager and now we have an Ubuntu package landing soon.
The upshot is that we now have a simple DBus property:
system op.NetworkManag er freedesktop/ NetworkManager op.NetworkManag er.PrimaryConne ctionType
org.freedeskt
/org/
org.freedeskt
which is a string like '802-11-wireless' or 'bluetooth'. If there is no connection then it is an empty string.
We don't have normal D-Bus property change notification here but rather a custom-rolled signal from NetworkManager itself (PropertiesChan ged).