summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/constants.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-02-28 22:43:02 +0100
committerKali Kaneko <kali@leap.se>2018-03-02 03:54:17 +0100
commitb3549ae8cd496bbb16b7aa67e35717b60378dbf7 (patch)
treea82dcfd852d4419c8d712e3297756687c200a7bb /src/leap/bitmask/vpn/constants.py
parent64a159436428450aec8170b49d5b3ae895560d79 (diff)
[bug] fix launching of vpn for snaps
Diffstat (limited to 'src/leap/bitmask/vpn/constants.py')
-rw-r--r--src/leap/bitmask/vpn/constants.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/leap/bitmask/vpn/constants.py b/src/leap/bitmask/vpn/constants.py
index 086d700f..32f35e93 100644
--- a/src/leap/bitmask/vpn/constants.py
+++ b/src/leap/bitmask/vpn/constants.py
@@ -18,6 +18,7 @@
"""
System constants
"""
+import os
import platform
_system = platform.system()
@@ -26,6 +27,7 @@ IS_LINUX = _system == "Linux"
IS_MAC = _system == "Darwin"
IS_UNIX = IS_MAC or IS_LINUX
IS_WIN = _system == "Windows"
+IS_SNAP = os.environ.get('SNAP')
if IS_LINUX:
BITMASK_ROOT_SYSTEM = '/usr/sbin/bitmask-root'