diff options
author | Kali Kaneko <kali@leap.se> | 2018-02-28 22:43:02 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-03-02 03:54:17 +0100 |
commit | b3549ae8cd496bbb16b7aa67e35717b60378dbf7 (patch) | |
tree | a82dcfd852d4419c8d712e3297756687c200a7bb /src/leap/bitmask/vpn/privilege.py | |
parent | 64a159436428450aec8170b49d5b3ae895560d79 (diff) |
[bug] fix launching of vpn for snaps
Diffstat (limited to 'src/leap/bitmask/vpn/privilege.py')
-rw-r--r-- | src/leap/bitmask/vpn/privilege.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/privilege.py b/src/leap/bitmask/vpn/privilege.py index 9c9ce130..afbca6f0 100644 --- a/src/leap/bitmask/vpn/privilege.py +++ b/src/leap/bitmask/vpn/privilege.py @@ -29,7 +29,7 @@ from twisted.logger import Logger from twisted.python.procutils import which from leap.bitmask.util import STANDALONE, here -from .constants import IS_LINUX +from .constants import IS_LINUX, IS_SNAP from . import polkit log = Logger() @@ -52,6 +52,9 @@ def _helper_installer(action): raise Exception('Wrong action: %s' % action) if IS_LINUX: + if IS_SNAP: + log.debug('Skipping install of helpers, snap should have done that') + return cmd = 'bitmask_helpers ' + action if STANDALONE: binary_path = os.path.join(here(), "bitmask") |