Repository navigation
[network@cinnamon.org] - Try to fix #10225 - #11905
Conversation
|
Tested .Seems to work, thanks.
|
|
I see. Thanx for the feedback. |
|
Plese see my edited 3., may be the bug. |
|
I've never seen "WireGuard Connections" ON at startup, except when a WireGuard connection is already activated. |
|
I have some problems (and I need help!):
@timur-g Can you give me a .conf file (containing fake data) to understand the origin of your problem? Or tell me if its structure is the same of the one in https://cinnamon-spices.linuxmint.com/applets/view/368 (Wireguard section). |
|
Here it is: |
|
@timur-g To import this .conf file, try removing the `/32' part of Address. |
|
Even if removed, import does not work, says Line 10 needs valid IP. It is where there are 2 IP addresses IP1,IP2. |
|
@timur-g Try replacing the comma by a space: |
|
If comma is replaced by space, than GIU Import works, but puts that connection under VPN, which is expected, as it says "Import VPN". So it wouldbe good to have "Import Wireguard". Just saying. as import via nmcli works and it is one-time anyway. |
|
@claudiux This could be ported to c-c-c |
|
The icon problem seems solved now! |
|
I use this and it is great, should be in merged in Cinnamon IMO. |
|
@timur-g Thanks for the feedback. Good suggestion, I'll try to take it into account. |
|
Hi @claudiux. Happy with this, just wondering will you work more or someone should check and merge PRs? |
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>
…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>
Maybe fixes #10225 (at least partially).