cosmic-applets/cosmic-applet-network/src
BrianHotopp 8981b0b48e
fix(network): skip assumed connections in VPN list
`cosmic-applet-network` listed every connection from `nm.list_saved_connections()` in the VPN dropdown, including the in-memory-only profiles NetworkManager auto-generates for externally-managed interfaces (e.g. a `wg-quick@wg0.service` tunnel). Toggling such an "assumed" connection off deletes it from NM — it was never persisted — leaving a dead toggle with no way back through the applet or `nmcli con up`.

Skip connections flagged `unsaved` (in-memory only) at the `load_vpns()` site so they no longer get a togglable entry. The active-connections section still shows the interface as connected (read-only). One-line change in `cosmic-applet-network/src/app.rs`.

## Test plan

- Built on Pop!_OS and ran the patched `cosmic-applet-network`: with `wg-quick@wg0` up and NM tracking `wg0` as connected-externally, the VPN dropdown no longer shows the destructive `wg0` toggle; the active-connections section still shows `wg0`; Wi-Fi toggling is unaffected.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-29 19:23:45 +02:00
..
app.rs fix(network): skip assumed connections in VPN list 2026-05-29 19:23:45 +02:00
config.rs refactor: compile applets as multicall binary 2024-03-14 23:37:37 +01:00
lib.rs refactor: use settings subscriptions and nm secret agent 2026-01-09 21:41:16 +01:00
localize.rs chore: apply recommendations from clippy 2025-10-04 02:51:18 +02:00
main.rs refactor: compile applets as multicall binary 2024-03-14 23:37:37 +01:00
utils.rs refactor: use settings subscriptions and nm secret agent 2026-01-09 21:41:16 +01:00