summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/privilege.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-03-01 14:42:02 +0100
committerKali Kaneko <kali@leap.se>2018-03-02 03:54:20 +0100
commit4d82a4252c9074dc4f5b5b1d7aa3a682b5571521 (patch)
treef34548c0d7aa0f048f41846b14470b8c76b103e8 /src/leap/bitmask/vpn/privilege.py
parent75b006bfad38565e684ebd3bb11a7161d48f2f0e (diff)
[refactor] openvpn path and cmd for snap
Diffstat (limited to 'src/leap/bitmask/vpn/privilege.py')
-rw-r--r--src/leap/bitmask/vpn/privilege.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/privilege.py b/src/leap/bitmask/vpn/privilege.py
index afbca6f0..94d6cce5 100644
--- a/src/leap/bitmask/vpn/privilege.py
+++ b/src/leap/bitmask/vpn/privilege.py
@@ -29,9 +29,11 @@ from twisted.logger import Logger
from twisted.python.procutils import which
from leap.bitmask.util import STANDALONE, here
-from .constants import IS_LINUX, IS_SNAP
+from .constants import IS_LINUX
from . import polkit
+IS_SNAP = os.environ.get('SNAP')
+
log = Logger()