summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/gui/anonvpn.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/leap/bitmask/gui/anonvpn.py b/src/leap/bitmask/gui/anonvpn.py
index 4884510f..18b2514e 100644
--- a/src/leap/bitmask/gui/anonvpn.py
+++ b/src/leap/bitmask/gui/anonvpn.py
@@ -43,10 +43,22 @@ bitmaskd = None
def launch_gui():
from leap.bitmask.util import STANDALONE
+ systray = 'bitmask-systray'
+
+ snap = os.environ.get('SNAP')
+
+ if snap:
+ STANDALONE = True
+ _here = snap
+ systray = '/snap/bin/riseup-vpn.bitmask-systray'
+ else:
+ _here = here()
+
if STANDALONE:
- gui = os.path.join(here(), 'bitmask-systray')
+ gui = os.path.join(_here, systray)
else:
- gui = 'bitmask-systray'
+ gui = systray
+ print("trying to launch: %s" % gui)
subprocess.call([gui])