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/chrome/chromeapp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/leap/bitmask/chrome/chromeapp.py') diff --git a/src/leap/bitmask/chrome/chromeapp.py b/src/leap/bitmask/chrome/chromeapp.py index b1de0990..b6769804 100644 --- a/src/leap/bitmask/chrome/chromeapp.py +++ b/src/leap/bitmask/chrome/chromeapp.py @@ -64,7 +64,9 @@ def start_app(): print('[!] Cannot find chromium installed in the system!') sys.exit(1) delete_old_authtoken() - bitmaskd = Process(target=run_bitmaskd) + bitmaskd = Process(target=run_bitmaskd, + kwargs={'app_name': 'Bitmask', + 'exec_path': sys.argv[0]}) bitmaskd.start() cmd = 'chromium -app=%s' % get_url() -- cgit v1.2.3