summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/launchers/linux.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/vpn/launchers/linux.py')
-rw-r--r--src/leap/bitmask/vpn/launchers/linux.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/leap/bitmask/vpn/launchers/linux.py b/src/leap/bitmask/vpn/launchers/linux.py
index d39b3b1..f99c5c7 100644
--- a/src/leap/bitmask/vpn/launchers/linux.py
+++ b/src/leap/bitmask/vpn/launchers/linux.py
@@ -59,8 +59,14 @@ class LinuxVPNLauncher(VPNLauncher):
class BITMASK_ROOT(object):
def __call__(self):
- return ("/usr/local/sbin/bitmask-root" if flags_STANDALONE else
- "/usr/sbin/bitmask-root")
+ _global = '/usr/sbin/bitmask-root'
+ _local = '/usr/local/sbin/bitmask-root'
+ if os.path.isfile(_global):
+ return _global
+ elif os.path.isfile(_local):
+ return _local
+ else:
+ return 'bitmask-root'
class OPENVPN_BIN_PATH(object):
def __call__(self):