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
Ashley Wulber
a4e6ecb280
fix(network): align name with spec
2026-05-29 16:20:40 +02:00
Akrm Al-Hakimi
8d84396e57
feat(network): integrate nmrs for VPN, airplane mode, and secret agent
...
Replace cosmic-settings-network-manager-subscription channel-based
NetworkManager calls with direct nmrs API calls:
- VPN list: nm.list_saved_connections() instead of hand-walking
NetworkManagerSettings over D-Bus.
- VPN connect/disconnect: nm.connect_vpn_by_uuid / disconnect_vpn_by_uuid.
- Forget Wi-Fi: nm.forget(&ssid).
- Wi-Fi radio toggle: nm.set_wireless_enabled.
- Airplane mode: nm.set_airplane_mode, dropping
cosmic-settings-airplane-mode-subscription.
- Secret agent: nmrs::agent::SecretAgent registered per-popup,
replacing nm-secret-agent-manager. VPN secrets are replied via
responder.vpn_secrets(...); the applets own Authenticate flow still
drives Wi-Fi password handoff and releases NM with NoSecrets.
2026-05-19 10:27:27 -04:00
Ashley Wulber
1517d7388d
wip: update libcosmic
2026-04-16 15:27:25 -06:00
András
f140e80bf9
Removed known wifi from visible wireless networks section
2026-04-03 19:00:36 -04:00
Ashley Wulber
71d9d6d5bb
chore: updates after iced-rebase
2026-03-31 22:34:59 +02:00
Md istekhar
6e74e90ea2
fix(network): focus password input in authentication dialog
2026-02-17 22:49:16 +01:00
Ashley Wulber
cbf2a82fb7
chore: update cosmic-settings
...
also refactors the active device handling, which didn't seem quite correct before.
2026-01-30 00:09:08 +01:00
Ashley Wulber
c113768ac5
improv(network): reduce CPU usage
...
connections don't need to be updated when popup is closed
2026-01-09 21:41:16 +01:00
Ashley Wulber
1034622dc4
fix: reconnect to network manager if disconnected
2026-01-09 21:41:16 +01:00
Ashley Wulber
10e4f84d3f
refactor: use settings subscriptions and nm secret agent
2026-01-09 21:41:16 +01:00
Konstantinos
d7ab2607ea
fix: show vpn section even when wifi is off
2025-12-30 08:35:01 +01:00
Fred
8320b54074
fix wired speed detection and layout ( #1156 )
...
* fix wired speed detection and layout
* show 2.5 Gbps and 2.5 Tbps interface with decimal values
2025-11-13 16:34:42 -07:00
Cheong Lau
5369b4eb29
perf: use rustc-hash for HashMap and HashSet
2025-10-22 04:33:30 +02:00
Vukašin Vojinović
02fb6e145a
cargo fmt
2025-10-08 12:30:43 -04:00
Tomas Hlavacek
6a7fa04067
feat(network): add VPN connection management
2025-10-08 16:37:21 +02:00
Cheong Lau
dd0158d8f0
perf: refactor to reduce memory allocations and cpu work
2025-10-07 17:04:51 +02:00
Cheong Lau
8e0f1c4a09
chore: apply recommendations from clippy
2025-10-04 02:51:18 +02:00
Vukašin Vojinović
2b7b4cba56
chore: update to Rust 2024 edition
2025-08-18 16:44:50 +02:00
Vukašin Vojinović
c3fafd3910
chore: use std::sync::LazyLock
...
Removes `once_cell` as a direct dependency.
2025-08-18 16:44:50 +02:00
Ashley Wulber
31afd3fa8b
feat(network): support for eap peap networks
2025-04-18 12:21:16 -04:00
Ashley Wulber
619550cf61
fix: handling of surface action
2025-03-18 08:13:03 -04:00
Jonathan Capps
2f18d1e920
fix: password hide/show on wifi authentication
2025-03-17 21:29:00 +01:00
Ashley Wulber
c54ddeb38a
chore: udpate libcosmic
2025-03-14 14:26:42 -04:00
Ashley Wulber
61d1d1b91d
fix: use fixed window width for all applets
2025-03-14 14:26:42 -04:00
Ashley Wulber
0de336d0d7
update libcosmic: adds tooltip support
2025-03-14 14:26:42 -04:00
mkljczk
82ca8bab37
feat: display WPS hint only when WPS is available
2025-02-10 13:16:33 +01:00
mkljczk
a3be974f81
improv(network): use secure_input for Wi-Fi password field
...
Signed-off-by: mkljczk <git@mkljczk.pl>
2025-02-04 20:42:39 +01:00
András
29a62db2f6
Fix formatting
2024-12-31 17:08:37 +01:00
András
7eb47a71b3
Added workaroud for toggle after separator crash
2024-12-31 17:08:37 +01:00
András
d69331836f
Added todo coments
2024-12-31 17:08:37 +01:00
András
95abfcab27
Fixed connecting and disconnecting to wrong hw_device
2024-12-31 17:08:37 +01:00
András
2198fa9b9a
Added comparing hw_address everywhere
2024-12-31 17:08:37 +01:00
Vukašin Vojinović
6b740c59be
fix(app-list): use context menu radius from theme
2024-11-04 08:47:36 -05:00
Ashley Wulber
5b5cd77e7c
update iced
2024-10-31 17:52:33 -04:00
Vukašin Vojinović
941cbf546b
fix: padding, spacing, context menu style, and settings buttons
2024-09-24 15:52:17 +02:00
Vukašin Vojinović
02b3fbdb11
fix: use cosmic::widget::text instead of cosmic::iced::widget::text
2024-09-03 16:52:59 +02:00
Vukašin Vojinović
55cd23b590
fix(network): don't show visible networks when wifi is off
2024-08-15 10:18:19 +02:00
lazytanuki
e51ca81f7d
feat: toggle popups on press down
2024-08-13 19:03:34 +02:00
Ian Douglas Scott
293a91e8b1
Update for spawn_desktop_exec that calls SpawnTransientUnit
...
Allows `xdg-desktop-portal` to get app id from PID.
Also updates calls to `cosmic::process::spawn` to spawn in future.
2024-07-28 20:25:23 -07:00
Vukašin Vojinović
0640e88412
chore: merge imports
2024-07-09 16:26:27 +02:00
Ashley Wulber
d1a6e089b4
fix: allow network resets
...
also updates libcosmic and cosmic-protocolss, and adds clipboard support to the network applet
2024-06-13 19:45:37 -04:00
Michael Aaron Murphy
a1de560240
improv(network): use body text style
...
Closes #479
2024-06-06 22:35:09 +02:00
Ashley Wulber
1d6b5d7ec9
fix(network): remove extra divider when there are no known wifi connections
2024-05-14 17:46:48 -04:00
Ashley Wulber
0d778d05ef
fix(network): remove settings button
2024-05-06 06:51:45 -06:00
Ashley Wulber
9f51e12fc9
fix: reset timeline when a popup is created
2024-04-30 20:14:46 -04:00
Ashley Wulber
4b86f05db6
fix: clean up menu and new connection after successfuly connecting
2024-04-17 06:28:57 +02:00
Ashley Wulber
db47edf9b6
fix(network): add connection if it doesn't exist when it is selected
2024-04-16 21:24:02 +02:00
Ashley Wulber
4510e81f6f
fix: better handling of request results in the network applet
2024-03-25 15:33:30 -06:00
Ashley Wulber
19eb20b4ff
fix: use the correct url and use cosmic spawn
2024-02-02 16:27:11 -05:00