From 8462f36cdb9dbab00d5025ac6d7e4f8581951340 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Tue, 27 Mar 2018 19:12:39 +0200 Subject: [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 --- src/leap/bitmask/gui/anonvpn.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/leap/bitmask/gui/anonvpn.py') 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() -- cgit v1.2.3