From 205571493d2d71d328b1762953db5d4271db0acb Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Tue, 22 Aug 2017 19:20:47 +0200 Subject: [feat] add --nodaemon param to polkit_agent --- src/leap/bitmask/vpn/helpers/linux/polkit_agent.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/leap/bitmask/vpn/helpers/linux/polkit_agent.py') diff --git a/src/leap/bitmask/vpn/helpers/linux/polkit_agent.py b/src/leap/bitmask/vpn/helpers/linux/polkit_agent.py index 7939b24..26fd7c8 100644 --- a/src/leap/bitmask/vpn/helpers/linux/polkit_agent.py +++ b/src/leap/bitmask/vpn/helpers/linux/polkit_agent.py @@ -21,6 +21,7 @@ Daemonizes polkit authentication agent. import os import subprocess +import sys import daemon @@ -74,6 +75,7 @@ def launch(): if __name__ == "__main__": - # TODO pass a --nodaemon flag so that we can launch this in the foreground - # and debug this module, getting errors to stderr. - launch() + if '--nodaemon' in sys.argv: + _launch_agent() + else: + launch() -- cgit v1.2.3