akrm al-hakimi
74e2908987
chore: remove dead arm in DeviceState match
2026-07-10 16:59:47 -06:00
akrm al-hakimi
6fd8309cf7
chore: remove dead utils file
2026-07-10 16:59:47 -06:00
akrm al-hakimi
f69e943d91
fix(network): restore IPv4 display and wifi list ordering
...
- Strip the CIDR suffix (/24) from the shown IPv4 address
- Sort visible wireless networks by signal strength again
- Filter out empty-SSID "hidden network" entries from the list
2026-07-10 16:59:47 -06:00
Akrm Al-Hakimi
a3be51560f
fix: dupe connection names; incorrect ipv6 labeling
...
Fixes a bug where we showed `Activated` networks after the current active
one.
Also ipv4/6 addresses were merged so this seperates them and only shows ipv4
for now until we decide the best way to show both, UI/UX wise.
2026-07-10 16:59:47 -06:00
Akrm Al-Hakimi
e318f0d412
cosmic-applet-network: migrate NetworkManager flow to nmrs 3.4
2026-07-10 16:59:47 -06:00
Ashley Wulber
69d358ec34
chore: cleanup and update deps
2026-07-01 23:26:15 -04:00
Ashley Wulber
f0ca9e7aee
chore: update libcosmic
2026-06-30 13:17:39 -04:00
Ashley Wulber
405fddda2d
wip: blur
2026-06-30 13:17:37 -04:00
Fred
c2a00a36a8
feat(network): use libcosmic spinner for connecting states
2026-06-26 18:30:06 +02:00
LKramer
1473e1f008
fix(network): register secret agent at NetworkManager's expected object path
...
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 14:05:36 +02:00
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
3835133af1
fix (network): reversed order of WAPs
...
Don't use `sort_by_key` when wanting a descending order search...
2025-10-22 10:08:15 -04: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
7876fd1b36
fix(network): reversed ordering of networks
2025-10-07 22:52:31 +02:00
Cheong Lau
38c037c977
perf: use unstable sorting when async
...
Unstable sorting should be slightly faster than stable sorting, and if
the vector was built asynchronously then preserving the initial order
doesn't matter too much.
Continue to use stable sorting where the vector is not built
asynchronously, or if the vector is partially sorted (e.g. when new
elements are pushed to a sorted vector).
2025-10-07 17:04:51 +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
Ian Douglas Scott
d3ef5b181b
Fix calls to rfkill on distros that put in in sbin
...
This makes the network applet work on Debian, for instance.
It may be better to directly use `/dev/rfkill`, but this improves things
for now.
2025-08-01 20:38:23 -07:00
Lampan-git
114f849143
fix(wifi): reconnect issue
2025-07-08 16:56:33 +02:00
Ashley Wulber
31afd3fa8b
feat(network): support for eap peap networks
2025-04-18 12:21:16 -04:00
Ashley Wulber
e7f24828f1
fix(network): skip connections if getting settings fails
2025-04-16 10:49:26 -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
9f9bb9c673
Cleaned up code a bit
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