Skip to content

network: Remove stale wireguard connections - #13847

Merged
clefebvre merged 1 commit into
linuxmint:masterfrom
leigh123linux:network-wireguard
Jul 6, 2026
Merged

clefebvre merged 1 commit into
linuxmint:masterfrom
leigh123linux:network-wireguard

Conversation

@leigh123linux

@leigh123linux leigh123linux commented Jul 4, 2026 •

Copy link
Copy Markdown
Member

Fixes WireGuard connections lingering in the Cinnamon Network Manager applet by ensuring WireGuard entries are removed and the WireGuard section is hidden when it becomes empty.

Changes:

Handle NMConnectionCategory.WIREGUARD in _connectionRemoved() by removing the connection from the WireGuard device list.
Hide the WireGuard menu section when no WireGuard connections remain.

Fixes #12581

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes WireGuard connections lingering in the Cinnamon Network Manager applet by ensuring WireGuard entries are removed and the WireGuard section is hidden when it becomes empty.

Changes:

  • Handle NMConnectionCategory.WIREGUARD in _connectionRemoved() by removing the connection from the WireGuard device list.
  • Hide the WireGuard menu section when no WireGuard connections remain.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@clefebvre
clefebvre merged commit f9b7d18 into linuxmint:master Jul 6, 2026
4 of 5 checks passed
@leigh123linux
leigh123linux deleted the network-wireguard branch August 11, 2026 18:22
IvanTheGeek added a commit to IvanTheGeek/cinnamon that referenced this pull request Oct 3, 2026
WireGuard connections had a section of their own, "WIREGUARD
Connections", backed by a copy of the VPN code (NMDeviceWIREGUARD) and
a panel-icon override of its own. To the user both lists hold the same
kind of thing, a tunnel on top of the real link, and the separate path
gets the panel wrong. The override keyed off the WireGuard title
switch, so the tooltip said "Connected to WIREGUARD" while a tunnel
was still connecting or already disconnecting. The override is also
older than the VPN icon from linuxmint#12142 (it came with linuxmint#11905), so with
Wi-Fi as the main connection a WireGuard tunnel replaced the signal
bars with the plain VPN icon, where a VPN-plugin connection shows the
Wi-Fi bars with a padlock.

List WireGuard connections under "VPN Connections" instead.
NMDeviceVPN accepts both types and WireGuard maps to the VPN category,
so WireGuard runs through the VPN code: the multiple-connection
handling from linuxmint#12930, the removal of deleted profiles that linuxmint#13847
copied for WireGuard, and the panel icon from linuxmint#12142. That icon shows
the Wi-Fi bars with a padlock when Wi-Fi is the main connection, the
VPN icon otherwise, and the acquiring icon while a tunnel connects.
NMDeviceWIREGUARD, the WIREGUARD category and the override go away.

Every row is now a switch that turns its own connection on or off, as
WireGuard rows have been since linuxmint#13911. VPN-plugin rows used to be
click-to-toggle items with a dot. Nameless connections still read
"Connected (private)", and WireGuard rows now follow a rename, as VPN
rows already did. The section's title switch keeps its code, so it now
covers both kinds: off disconnects every tunnel, WireGuard included,
and on starts the most recently used connection, which may now be a
WireGuard one.

This drops the three WIREGUARD strings and adds none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mtwebster pushed a commit that referenced this pull request Nov 1, 2026
…s kind (#13913)

* network applet: list WireGuard connections in the VPN section

WireGuard connections had a section of their own, "WIREGUARD
Connections", backed by a copy of the VPN code (NMDeviceWIREGUARD) and
a panel-icon override of its own. To the user both lists hold the same
kind of thing, a tunnel on top of the real link, and the separate path
gets the panel wrong. The override keyed off the WireGuard title
switch, so the tooltip said "Connected to WIREGUARD" while a tunnel
was still connecting or already disconnecting. The override is also
older than the VPN icon from #12142 (it came with #11905), so with
Wi-Fi as the main connection a WireGuard tunnel replaced the signal
bars with the plain VPN icon, where a VPN-plugin connection shows the
Wi-Fi bars with a padlock.

List WireGuard connections under "VPN Connections" instead.
NMDeviceVPN accepts both types and WireGuard maps to the VPN category,
so WireGuard runs through the VPN code: the multiple-connection
handling from #12930, the removal of deleted profiles that #13847
copied for WireGuard, and the panel icon from #12142. That icon shows
the Wi-Fi bars with a padlock when Wi-Fi is the main connection, the
VPN icon otherwise, and the acquiring icon while a tunnel connects.
NMDeviceWIREGUARD, the WIREGUARD category and the override go away.

Every row is now a switch that turns its own connection on or off, as
WireGuard rows have been since #13911. VPN-plugin rows used to be
click-to-toggle items with a dot. Nameless connections still read
"Connected (private)", and WireGuard rows now follow a rename, as VPN
rows already did. The section's title switch keeps its code, so it now
covers both kinds: off disconnects every tunnel, WireGuard included,
and on starts the most recently used connection, which may now be a
WireGuard one.

This drops the three WIREGUARD strings and adds none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* network applet: show each VPN connection's kind next to its name

With WireGuard and VPN-plugin connections in one list, the name is all
a row has to go on, and connection names often do not say what kind
of tunnel they are. Show the kind next to the name, in the switch
row's status label: "WireGuard" for WireGuard connections, and for VPN
plugins a name looked up from the plugin's service type (OpenVPN,
PPTP, L2TP, OpenConnect, ...). A plugin that is not in the table shows
the last part of its service type, such as "iodine".

"WireGuard" reuses the translated string the applet already has for
the WireGuard device description. The plugin names are product and
protocol names and are left untranslated, so the change adds no
strings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Network Manager Applet does not clear closed Wireguard connections

3 participants