summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/constants.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-10-07 00:51:13 +0200
committerKali Kaneko <kali@leap.se>2017-10-09 17:14:25 +0200
commitff1d9805b71cf3d0e74724cdd89ebb1537cffbba (patch)
treea360eec5bd6dfde953da87950fd10fa494e34337 /src/leap/bitmask/vpn/constants.py
parent2d58e0e8e04404b5e7ed9ce1c2165b428586fb94 (diff)
[bug] properly check for local openvpn path
- Resolves: #9099
Diffstat (limited to 'src/leap/bitmask/vpn/constants.py')
-rw-r--r--src/leap/bitmask/vpn/constants.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/constants.py b/src/leap/bitmask/vpn/constants.py
index c7a5147b..086d700f 100644
--- a/src/leap/bitmask/vpn/constants.py
+++ b/src/leap/bitmask/vpn/constants.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# constants.py
-# Copyright (C) 2015 LEAP
+# Copyright (C) 2015-2017 LEAP
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -26,3 +26,11 @@ IS_LINUX = _system == "Linux"
IS_MAC = _system == "Darwin"
IS_UNIX = IS_MAC or IS_LINUX
IS_WIN = _system == "Windows"
+
+if IS_LINUX:
+ BITMASK_ROOT_SYSTEM = '/usr/sbin/bitmask-root'
+ BITMASK_ROOT_LOCAL = '/usr/local/sbin/bitmask-root'
+ OPENVPN_SYSTEM = '/usr/sbin/openvpn'
+ OPENVPN_LOCAL = '/usr/local/sbin/leap-openvpn'
+ POLKIT_LOCAL = '/usr/share/polkit-1/actions/se.leap.bitmask-bundle.policy'
+ POLKIT_SYSTEM = '/usr/share/polkit-1/actions/se.leap.bitmask.policy'