From 7b6ba3b0d11df855025cb37e4741e028a5166352 Mon Sep 17 00:00:00 2001 From: nevaforget Date: Fri, 24 Apr 2026 20:41:08 +0200 Subject: [PATCH] fix(vpn): use 'id' keyword instead of '--' in nmcli connection up/down MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Newer nmcli no longer parses '--' as end-of-options for 'connection up', it treats it as the connection name and fails with "Unbekannte Verbindung »--«". The 'id' keyword is the canonical way to mark the following argument as the connection name. --- defaults/bin/moonarch-vpn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults/bin/moonarch-vpn b/defaults/bin/moonarch-vpn index ad57f58..218dbf5 100755 --- a/defaults/bin/moonarch-vpn +++ b/defaults/bin/moonarch-vpn @@ -39,13 +39,13 @@ function extract_connection_name() { # Requires nm-applet (or another NM secret agent) for interactive auth. function connect_vpn() { local connection="$1" - nmcli connection up -- "$connection" + nmcli connection up id "$connection" } # Disconnect a VPN. function disconnect_vpn() { local connection="$1" - nmcli connection down -- "$connection" + nmcli connection down id "$connection" } # Toggle the VPN connection based on its current state.