summaryrefslogtreecommitdiff
path: root/src/leap/services/eip
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@yahoo.com.ar>2013-07-10 16:28:04 -0300
committerIvan Alejandro <ivanalejandro0@yahoo.com.ar>2013-07-10 16:28:04 -0300
commit02d5af749b0eb2843302668fa0138afc6dc927da (patch)
tree3479d6e55e592c466c11aa0dfee7a3db3be80a3c /src/leap/services/eip
parent675d2d8d6582d87767280130bacee103ee71f070 (diff)
parentb138c5e11476e46f3b84cedf3601e302c5a27630 (diff)
Merge remote-tracking branch 'chiiph/bug/various_osx_fixes' into develop
Diffstat (limited to 'src/leap/services/eip')
-rw-r--r--src/leap/services/eip/vpnlaunchers.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/leap/services/eip/vpnlaunchers.py b/src/leap/services/eip/vpnlaunchers.py
index a1f7e4cf..116a8790 100644
--- a/src/leap/services/eip/vpnlaunchers.py
+++ b/src/leap/services/eip/vpnlaunchers.py
@@ -472,8 +472,8 @@ class DarwinVPNLauncher(VPNLauncher):
INSTALL_MSG = ("\"LEAP needs administrative privileges to install "
"missing scripts and fix permissions.\"")
- INSTALL_PATH = "/Applications/LEAP Client.app"
- INSTALL_PATH_ESCAPED = "/Applications/LEAP\ Client.app"
+ INSTALL_PATH = os.path.realpath(os.getcwd() + "/../../")
+ INSTALL_PATH_ESCAPED = os.path.realpath(os.getcwd() + "/../../")
OPENVPN_BIN = 'openvpn.leap'
OPENVPN_PATH = "%s/Contents/Resources/openvpn" % (INSTALL_PATH,)
OPENVPN_PATH_ESCAPED = "%s/Contents/Resources/openvpn" % (
@@ -620,12 +620,13 @@ class DarwinVPNLauncher(VPNLauncher):
if _has_updown_scripts(self.UP_SCRIPT):
args += [
- '--up', self.UP_SCRIPT,
+ '--up', '\"%s\"' % (self.UP_SCRIPT,),
]
if _has_updown_scripts(self.DOWN_SCRIPT):
args += [
- '--down', self.DOWN_SCRIPT]
+ '--down', '\"%s\"' % (self.DOWN_SCRIPT,)
+ ]
# should have the down script too
if _has_updown_scripts(self.OPENVPN_DOWN_PLUGIN):