mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 12:58:07 +01:00
Updated autoconnect.py to reflect changes to daemon
This commit is contained in:
@@ -14,11 +14,11 @@ bus = dbus.SystemBus()
|
|||||||
proxy_obj = bus.get_object('org.wicd.daemon', '/org/wicd/daemon')
|
proxy_obj = bus.get_object('org.wicd.daemon', '/org/wicd/daemon')
|
||||||
##we don't need some of these, so I just comment them out
|
##we don't need some of these, so I just comment them out
|
||||||
daemon = dbus.Interface(proxy_obj, 'org.wicd.daemon')
|
daemon = dbus.Interface(proxy_obj, 'org.wicd.daemon')
|
||||||
wireless = dbus.Interface(proxy_obj, 'org.wicd.daemon.wireless')
|
#wireless = dbus.Interface(proxy_obj, 'org.wicd.daemon.wireless')
|
||||||
wired = dbus.Interface(proxy_obj, 'org.wicd.daemon.wired')
|
#wired = dbus.Interface(proxy_obj, 'org.wicd.daemon.wired')
|
||||||
#config = dbus.Interface(proxy_obj, 'org.wicd.daemon.config')
|
#config = dbus.Interface(proxy_obj, 'org.wicd.daemon.config')
|
||||||
#############
|
#############
|
||||||
|
|
||||||
print daemon.Hello()
|
print daemon.Hello()
|
||||||
if wireless.CheckIfWirelessConnecting() == False and wired.CheckIfWiredConnecting() == False:
|
if daemon.CheckIfConnecting() == False:
|
||||||
print wireless.AutoConnect(True)
|
print daemon.AutoConnect(True)
|
||||||
|
|||||||
Reference in New Issue
Block a user