> On 06 September 2017 at 11:14 Thomas Haller <[email protected]> wrote: > > On Wed, 2017-09-06 at 10:20 +0100, [email protected] > wrote: > > > I'm python-scripting to get a connection's gsm properties, and want > > to get > > the password - which "c.for_each_setting_value(print_values, None)" > > seems to > > not report (just "None"). > > What would be the technique to get it? > > Thanks > > Hi, > > on D-Bus, secrets are exposed separately from regular properties of the > connection. > > GetSettings() vs GetSecrets() in > https://developer.gnome.org/NetworkManager/stable/gdbus-org.freedesktop.NetworkManager.Settings.Connection.html > > Anyway, from libnm (and python gi) you would call > > secrets = remote_connection.get_secrets('ethernet') >
Great, got that. Now, don't suppose you could help me get to grips with parsing the Glib.Variant....? ;) _______________________________________________ networkmanager-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/networkmanager-list
