From 8791f7f36422d24c9b564b3436bae8de4a24c6e0 Mon Sep 17 00:00:00 2001 From: beckline Date: Sun, 15 Feb 2026 22:49:49 +0300 Subject: [PATCH] ui: svpn_run_profile use systemd-run --no-block --- selective-vpn-gui/svpn_run_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -