diff --git a/selective-vpn-gui/svpn_run_profile.py b/selective-vpn-gui/svpn_run_profile.py index 93092af..0fc7a49 100644 --- a/selective-vpn-gui/svpn_run_profile.py +++ b/selective-vpn-gui/svpn_run_profile.py @@ -175,12 +175,13 @@ def run_systemd_unit(cmdline: str, *, unit: str) -> str: "--user", "--unit", unit, + "--no-block", "--collect", "--same-dir", ] + args try: - p = subprocess.run(run_cmd, capture_output=True, text=True, check=False, timeout=8) + p = subprocess.run(run_cmd, capture_output=True, text=True, check=False, timeout=6) except subprocess.TimeoutExpired as e: raise RuntimeError("systemd-run timed out") from e out = ((p.stdout or "") + (p.stderr or "")).strip() @@ -296,4 +297,3 @@ if __name__ == "__main__": except Exception as e: log(f"ERROR: {e}") raise SystemExit(1) -