From 4dc8562400a5d06ce0fa43fa317bc619f9cdd9ae Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Fri, 16 Aug 2013 18:50:29 +0200 Subject: Move a little bit down the setenv flag in linux. Otherwise it is not taken as an argument for openvpn. --- src/leap/bitmask/services/eip/vpnlaunchers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/leap/bitmask/services') diff --git a/src/leap/bitmask/services/eip/vpnlaunchers.py b/src/leap/bitmask/services/eip/vpnlaunchers.py index 31a1c17b..fb9ac46f 100644 --- a/src/leap/bitmask/services/eip/vpnlaunchers.py +++ b/src/leap/bitmask/services/eip/vpnlaunchers.py @@ -402,15 +402,15 @@ class LinuxVPNLauncher(VPNLauncher): openvpn = first(openvpn_possibilities) args = [] - args += [ - '--setenv', "LEAPOPENVPN", "1" - ] - pkexec = self.maybe_pkexec() if pkexec: args.append(openvpn) openvpn = first(pkexec) + args += [ + '--setenv', "LEAPOPENVPN", "1" + ] + if openvpn_verb is not None: args += ['--verb', '%d' % (openvpn_verb,)] -- cgit v1.2.3