diff options
author | Kali Kaneko <kali@leap.se> | 2018-02-20 23:14:46 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-03-02 03:54:08 +0100 |
commit | eafa6707a2adbab1cab85daab6172a620f261118 (patch) | |
tree | 931e38e3fd6b30c7b22a229407d939317d6686af /src/leap/bitmask/gui/anonvpn.py | |
parent | 6ef686862980581318dd8b42981cc8f90738ee50 (diff) |
[pkg] set systray path on snaps
Diffstat (limited to 'src/leap/bitmask/gui/anonvpn.py')
-rw-r--r-- | src/leap/bitmask/gui/anonvpn.py | 16 |
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]) |