diff options
Diffstat (limited to 'src/leap/bitmask/gui/housekeeping.py')
-rw-r--r-- | src/leap/bitmask/gui/housekeeping.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/bitmask/gui/housekeeping.py b/src/leap/bitmask/gui/housekeeping.py index 7069adba..5c1d8079 100644 --- a/src/leap/bitmask/gui/housekeeping.py +++ b/src/leap/bitmask/gui/housekeeping.py @@ -8,6 +8,7 @@ from leap.common.config import get_path_prefix class NoAuthTokenError(Exception): pass + def get_authenticated_url(): url = "http://localhost:7070" path = os.path.join(get_path_prefix(), 'leap', 'authtoken') @@ -26,6 +27,7 @@ def get_authenticated_url(): url += '#' + token return url + def terminate(pid): if os.path.isfile(pid): with open(pid) as f: @@ -33,6 +35,7 @@ def terminate(pid): print('[bitmask] terminating bitmaskd...') os.kill(pidno, signal.SIGTERM) + def reset_authtoken(): prev_auth = os.path.join(get_path_prefix(), 'leap', 'authtoken') try: @@ -40,6 +43,7 @@ def reset_authtoken(): except OSError: pass + def cleanup(): print('[bitmask] cleaning up files') base = os.path.join(get_path_prefix(), 'leap') |