diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-03-27 19:12:39 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-03-28 23:51:28 +0200 |
commit | 8462f36cdb9dbab00d5025ac6d7e4f8581951340 (patch) | |
tree | 846db6dcea3ae1e312a1cd9fd49b48fbcf39c2bd /src/leap/bitmask/gui | |
parent | 65ae3b5349eb02f938c3987a1e91d2641b0f94bc (diff) |
[feat] make autostart app name and exec path configurable
Use sys.argv[0] as exec path instead of hardcode 'bitmask', and let
anonvpn be called RiseupVPN.
- Resolves: bitmask-systray#19
Diffstat (limited to 'src/leap/bitmask/gui')
-rw-r--r-- | src/leap/bitmask/gui/anonvpn.py | 5 | ||||
-rw-r--r-- | src/leap/bitmask/gui/app.py | 4 | ||||
-rw-r--r-- | src/leap/bitmask/gui/app2.py | 4 |
3 files changed, 10 insertions, 3 deletions
diff --git a/src/leap/bitmask/gui/anonvpn.py b/src/leap/bitmask/gui/anonvpn.py index 51aefc2b..4269459c 100644 --- a/src/leap/bitmask/gui/anonvpn.py +++ b/src/leap/bitmask/gui/anonvpn.py @@ -22,6 +22,7 @@ Launches bitmaskd and then launches the systray. """ import subprocess +import sys import os from multiprocessing import Process @@ -60,7 +61,9 @@ def start_app(): global bitmaskd check_stale_pidfile() - bitmaskd = Process(target=run_bitmaskd) + bitmaskd = Process(target=run_bitmaskd, + kwargs={'app_name': 'RiseupVPN', + 'exec_path': sys.argv[0]}) bitmaskd.start() reset_authtoken() launch_gui() diff --git a/src/leap/bitmask/gui/app.py b/src/leap/bitmask/gui/app.py index 70c0051f..02600420 100644 --- a/src/leap/bitmask/gui/app.py +++ b/src/leap/bitmask/gui/app.py @@ -197,7 +197,9 @@ def _handle_kill(*args, **kw): def launch_backend(): global bitmaskd check_stale_pidfile() - bitmaskd = Process(target=run_bitmaskd) + bitmaskd = Process(target=run_bitmaskd, + kwargs={'app_name': 'Bitmask', + 'exec_path': sys.argv[0]}) bitmaskd.start() diff --git a/src/leap/bitmask/gui/app2.py b/src/leap/bitmask/gui/app2.py index 5ec76b7b..8eadf1b4 100644 --- a/src/leap/bitmask/gui/app2.py +++ b/src/leap/bitmask/gui/app2.py @@ -118,7 +118,9 @@ def launch_backend(): global bitmaskd check_stale_pidfile() - bitmaskd = Process(target=run_bitmaskd) + bitmaskd = Process(target=run_bitmaskd, + kwargs={'app_name': 'Bitmask', + 'exec_path': sys.argv[0]}) bitmaskd.start() |