summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/vpn')
-rw-r--r--src/leap/bitmask/vpn/helpers/linux/polkit_agent.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/leap/bitmask/vpn/helpers/linux/polkit_agent.py b/src/leap/bitmask/vpn/helpers/linux/polkit_agent.py
index 7939b24d..26fd7c8c 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()