summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/launchers
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-05-19 13:47:15 +0200
committerRuben Pollan <meskio@sindominio.net>2017-05-22 12:56:21 +0200
commit4c75ff68fe2b629c3f53b51a07ab20e6bfa52bf0 (patch)
tree4c9f55191643d78f22d72508e443c8bddcc50fd0 /src/leap/bitmask/vpn/launchers
parent4f39b220a0765929fa0d744ce74a8f5125e958c2 (diff)
[bug] use openvpn from bundle
Diffstat (limited to 'src/leap/bitmask/vpn/launchers')
-rw-r--r--src/leap/bitmask/vpn/launchers/linux.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/leap/bitmask/vpn/launchers/linux.py b/src/leap/bitmask/vpn/launchers/linux.py
index 0c3864b2..f8bb8ed3 100644
--- a/src/leap/bitmask/vpn/launchers/linux.py
+++ b/src/leap/bitmask/vpn/launchers/linux.py
@@ -25,6 +25,7 @@ import sys
from twisted.logger import Logger
+from leap.bitmask.util import STANDALONE
from leap.bitmask.vpn.utils import first, force_eval
from leap.bitmask.vpn.privilege import LinuxPolicyChecker
from leap.bitmask.vpn.privilege import NoPkexecAvailable
@@ -35,15 +36,6 @@ from leap.common.config import get_path_prefix
logger = Logger()
COM = commands
-flags_STANDALONE = False
-
-
-class NoPolkitAuthAgentAvailable(VPNLauncherException):
- pass
-
-
-class NoPkexecAvailable(VPNLauncherException):
- pass
class LinuxVPNLauncher(VPNLauncher):
@@ -66,7 +58,7 @@ class LinuxVPNLauncher(VPNLauncher):
class OPENVPN_BIN_PATH(object):
def __call__(self):
- return ("/usr/local/sbin/leap-openvpn" if flags_STANDALONE else
+ return ("/usr/local/sbin/leap-openvpn" if STANDALONE else
"/usr/sbin/openvpn")
class POLKIT_PATH(object):