From b9fff80022e15560151f523015cb5bf73bd3cff1 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Mon, 28 Aug 2017 17:19:12 -0400 Subject: [tests] do not fail if helper installed in debian path --- src/leap/bitmask/vpn/helpers/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/leap/bitmask/vpn/helpers/__init__.py b/src/leap/bitmask/vpn/helpers/__init__.py index 719fc5e9..42cff4a3 100644 --- a/src/leap/bitmask/vpn/helpers/__init__.py +++ b/src/leap/bitmask/vpn/helpers/__init__.py @@ -12,6 +12,7 @@ if IS_LINUX: helper_to = '/usr/local/sbin/bitmask-root' polkit_to = '/usr/share/polkit-1/actions/se.bitmask.bundle.policy' + deb_polkit_to = '/usr/share/polkit-1/actions/se.bitmask.policy' openvpn_to = '/usr/local/sbin/leap-openvpn' def install(): @@ -34,7 +35,9 @@ if IS_LINUX: def check(): helper = os.path.exists(helper_to) - polkit = os.path.exists(polkit_to) + polkit = ( + os.path.exists(polkit_to) or + os.path.exists(deb_polkit_to)) return helper and polkit if IS_MAC: -- cgit v1.2.3