about summary refs log tree commit diff
path: root/examples/python/nm-state.py
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2011-05-04 21:35:41 +0200
committerMichael Biebl <biebl@debian.org>2011-05-04 21:35:41 +0200
commit9f806e97a24bba61417ae312fcc0da40914266fb (patch)
tree4a25723414ceac11b4cba0558aa16f6f4b459f4b /examples/python/nm-state.py
parent8baa1aca8dfd35e3190d7d5655eb83b5b901e263 (diff)
Imported Upstream version 0.8.999 upstream/0.8.999
Diffstat (limited to 'examples/python/nm-state.py')
-rw-r--r--examples/python/nm-state.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/python/nm-state.py b/examples/python/nm-state.py
index e7bb55f1..a79b3405 100644
--- a/examples/python/nm-state.py
+++ b/examples/python/nm-state.py
@@ -53,11 +53,8 @@ for a in active:
     # needed to connect to a specific network.  Lets get those details so we
     # can find the user-readable name of the connection.
     con_path = prop_iface.Get("org.freedesktop.NetworkManager.Connection.Active", "Connection")
-    con_service = prop_iface.Get("org.freedesktop.NetworkManager.Connection.Active", "ServiceName")
-
-    # ask the provider of the connection for its details
-    service_proxy = bus.get_object(con_service, con_path)
-    con_iface = dbus.Interface(service_proxy, "org.freedesktop.NetworkManagerSettings.Connection")
+    service_proxy = bus.get_object("org.freedesktop.NetworkManager", con_path)
+    con_iface = dbus.Interface(service_proxy, "org.freedesktop.NetworkManager.Settings.Connection")
     con_details = con_iface.GetSettings()
     con_name = con_details['connection']['id']