summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/services/eip/linuxvpnlauncher.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-05-06 21:16:18 -0500
committerKali Kaneko <kali@leap.se>2014-05-12 11:25:06 -0500
commit6d18c78b384dc6624cde25cb41a998587661ffa5 (patch)
tree68244708c814495400c629b97abdfe0821ab64ac /src/leap/bitmask/services/eip/linuxvpnlauncher.py
parent120fd991719897c9a62a797842036a030246ff7c (diff)
use bitmask-root with pkexec
Diffstat (limited to 'src/leap/bitmask/services/eip/linuxvpnlauncher.py')
-rw-r--r--src/leap/bitmask/services/eip/linuxvpnlauncher.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/bitmask/services/eip/linuxvpnlauncher.py b/src/leap/bitmask/services/eip/linuxvpnlauncher.py
index e1c8e680..791c318c 100644
--- a/src/leap/bitmask/services/eip/linuxvpnlauncher.py
+++ b/src/leap/bitmask/services/eip/linuxvpnlauncher.py
@@ -72,7 +72,6 @@ def _is_auth_agent_running():
'ps aux | grep "[l]xpolkit"'
]
is_running = [commands.getoutput(cmd) for cmd in polkit_options]
- print "IS RUNNING ->", is_running
return any(is_running)
@@ -180,7 +179,6 @@ class LinuxVPNLauncher(VPNLauncher):
"""
# we use `super` in order to send the class to use
missing = super(LinuxVPNLauncher, kls).missing_other_files()
- print "MISSING OTHER", missing
if flags.STANDALONE:
polkit_file = LinuxPolicyChecker.get_polkit_path()
@@ -220,7 +218,10 @@ class LinuxVPNLauncher(VPNLauncher):
# we use `super` in order to send the class to use
command = super(LinuxVPNLauncher, kls).get_vpn_command(
eipconfig, providerconfig, socket_host, socket_port, openvpn_verb)
- command.insert(0, kls.BITMASK_ROOT + "openvpn start")
+
+ command.insert(0, kls.BITMASK_ROOT)
+ command.insert(1, "openvpn")
+ command.insert(2, "start")
pkexec = kls.maybe_pkexec()
if pkexec: