Repository navigation
network: Remove stale wireguard connections - #13847
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.WIREGUARDin_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.
leigh123linux
force-pushed
the
network-wireguard
branch
from
July 4, 2026 16:58
04b6def to
d31f31b
Compare
This was referenced Jul 30, 2026
2 tasks done
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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