mirror of
https://github.com/gryf/wicd.git
synced 2026-01-07 14:24:22 +01:00
Make sure it's possible to stop a dhcp client that's in the process of getting a lease.
Have gui.py trigger connection status updates every .5 seconds if in a connecting state. Fix typo in wicd-client.py
This commit is contained in:
@@ -69,7 +69,7 @@ class WicdError(Exception):
|
||||
|
||||
|
||||
__LANG = None
|
||||
def Run(cmd, include_stderr=False, return_pipe=False):
|
||||
def Run(cmd, include_stderr=False, return_pipe=False, return_obj=False):
|
||||
""" Run a command.
|
||||
|
||||
Runs the given command, returning either the output
|
||||
@@ -112,6 +112,8 @@ def Run(cmd, include_stderr=False, return_pipe=False):
|
||||
return ""
|
||||
|
||||
|
||||
if return_obj:
|
||||
return f
|
||||
if return_pipe:
|
||||
return f.stdout
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user