6
priv = "com.ubuntu.systemservice.setproxy"
8
session_bus = dbus.SessionBus()
9
system_bus = dbus.SystemBus()
11
ser = dbus.Interface(system_bus.get_object("com.ubuntu.SystemService","/"),
12
"com.ubuntu.SystemService")
14
print ser.get_proxy("http")
16
res = ser.set_proxy("http", "http://test:3128/")
19
ser.set_proxy("http","")
20
ser.set_proxy("ftp","")
22
print "new http proxy: '%s'" % ser.get_proxy("http")
23
print "new ftp proxy: '%s'" % ser.get_proxy("ftp")
25
#print ser.get_proxy("http-invalid-proto")