You are not logged in.

#1 2025-12-13 16:02:06

kamzata
Member
From: ITALY
Registered: 2017-01-19
Posts: 37

nm-connection-editor -> "Automatically connect to VPN" grayed out

I'd like to automatically connect to a Wireguard VPN when connecting to specific networks. I'm using Gnome as Desktop environment and therefore network-manager which unfortunately doesn't allow this option. So, I installed nm-connection-editor in order to try to achieve that but, as you can see from the screenshot below, I cannot select any VPN connection.

Screenshot-From-2025-12-13-16-43-11-mod.png

If I flag the option and I try to save I receive this error in console:

(nm-connection-editor:38280): dconf-WARNING **: 16:56:52.116: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch=b65abbf86944469b9d7cdfe28499454b --binary-syntax --close-stderr”: Child process exited with code 1

(nm-connection-editor:38280): dconf-WARNING **: 16:56:52.116: failed to commit changes to dconf: Error spawning command line “dbus-launch --autolaunch=b65abbf86944469b9d7cdfe28499454b --binary-syntax --close-stderr”: Child process exited with code 1

I lunched it with sudo (sudo nm-connection-editor).

Offline

#2 2025-12-14 08:41:46

-thc
Member
Registered: 2017-03-15
Posts: 1,066

Re: nm-connection-editor -> "Automatically connect to VPN" grayed out

kamzata wrote:

I lunched it with sudo (sudo nm-connection-editor).

No need to do that.

Just launch it as a user.

Offline

#3 2025-12-14 09:51:25

kamzata
Member
From: ITALY
Registered: 2017-01-19
Posts: 37

Re: nm-connection-editor -> "Automatically connect to VPN" grayed out

-thc wrote:
kamzata wrote:

I lunched it with sudo (sudo nm-connection-editor).

No need to do that.

Just launch it as a user.

Of course, before I tried as regular user with same result.

Offline

#4 2025-12-14 13:23:21

-thc
Member
Registered: 2017-03-15
Posts: 1,066

Re: nm-connection-editor -> "Automatically connect to VPN" grayed out

Just checked my notebook  - you are right. Native "NM WireGuard" connections are no "VPN connections" in this specific option. I have a few additional OpenVPN connections that would work and all WIreGuard connections are simply absent from the drop-down menu of this option.

Offline

#5 2025-12-14 13:38:26

kamzata
Member
From: ITALY
Registered: 2017-01-19
Posts: 37

Re: nm-connection-editor -> "Automatically connect to VPN" grayed out

-thc wrote:

Just checked my notebook  - you are right. Native "NM WireGuard" connections are no "VPN connections" in this specific option. I have a few additional OpenVPN connections that would work and all WIreGuard connections are simply absent from the drop-down menu of this option.

It seems to be an old bug. Here's other info.

I also tried to set it up using the cli but without success:

$ nmcli connection modify MyWifi connection.autoconnect-slaves 1

$ nmcli connection modify MyWifi connection.secondaries "MyVPN"
Error: failed to modify connection.secondaries: 'MyVPN' is not a VPN connection profile.

Last edited by kamzata (2025-12-14 16:28:26)

Offline

Board footer

Powered by FluxBB