Hello, I'd like to some apparently simple thing with nm dbus signals:
1) get warned that a connection has been activated 2) do something based on _which_ connection it is. Unfortunately all I was able to do so far is: 1) get warned that a connection has been activated (by listening at the dbus interface "org.freedesktop.NetworkManager.Connection.Active") 2) find out which connections are currently active (by getting the "ActiveConnections" list from "org.freedesktop.NetworkManager") 3) pick one of them, not knowing which was just activated rather than being already active before. Basically, I'm currently combining http://blog.g00se.org/2009/01/getting-dbus-messages-from.html with http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/python/nm-state.py Is there something obvious that I missed? Or maybe the right question should be: since among the properties of http://projects.gnome.org/NetworkManager/developers/api/09/spec.html#org.freedesktop.NetworkManager.Connection.Active there is also "Connection", why does the dictionary received by the signal handler of signal "PropertiesChanged" when a connection is activated contain only parameters "Default" and "State"? thanks in advance Pietro _______________________________________________ networkmanager-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/networkmanager-list
