summaryrefslogtreecommitdiff
path: root/src/leap/eip/conductor.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-03 10:46:22 +0900
committerkali <kali@leap.se>2012-08-03 10:46:22 +0900
commit0bb8cca027ab32a54f6792ab1b1368e2f1845368 (patch)
treefbccda410e0df863e1d4f43a1ad10a90ad5f5525 /src/leap/eip/conductor.py
parent5c34052ef9261a47947e3e03616fe34b099b9fa4 (diff)
check also for a suitable polkit-authentication-agent running
fix #382.
Diffstat (limited to 'src/leap/eip/conductor.py')
-rw-r--r--src/leap/eip/conductor.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/leap/eip/conductor.py b/src/leap/eip/conductor.py
index eeb7f8f8..7b927143 100644
--- a/src/leap/eip/conductor.py
+++ b/src/leap/eip/conductor.py
@@ -10,7 +10,7 @@ from leap.util.coroutines import spawn_and_watch_process
from leap.eip.config import (get_config, build_ovpn_command,
- EIPNoPkexecAvailable)
+ EIPNoPkexecAvailable, EIPNoPolkitAuthAgentAvailable)
from leap.eip.vpnwatcher import EIPConnectionStatus, status_watcher
from leap.eip.vpnmanager import OpenVPNManager, ConnectionRefusedError
@@ -90,6 +90,7 @@ to be triggered for each one of them.
self.proto = None
self.missing_pkexec = False
+ self.missing_auth_agent = False
self.command = None
self.args = None
@@ -132,6 +133,9 @@ to be triggered for each one of them.
try:
command, args = build_ovpn_command(config,
debug=self.debug)
+ except EIPNoPolkitAuthAgentAvailable:
+ command = args = None
+ self.missing_auth_agent = True
except EIPNoPkexecAvailable:
command = args = None
self.missing_pkexec = True