Skip to content

feat!: saved connection enumeration (Settings / Connection proxies)#376

Merged
cachebag merged 8 commits intodevelopmentfrom
v2.x
Apr 25, 2026
Merged

feat!: saved connection enumeration (Settings / Connection proxies)#376
cachebag merged 8 commits intodevelopmentfrom
v2.x

Conversation

@cachebag
Copy link
Copy Markdown
Owner

This PR adds typed enumeration of NetworkManager saved profiles via org.freedesktop.NetworkManager.Settings and Settings.Connection, with decoded SettingsSummary (Wi‑Fi, Ethernet, VPN, WireGuard, GSM, CDMA, Bluetooth, Other).

API

  • SavedConnection, SavedConnectionBrief, SettingsPatch, SettingsSummary, WifiSecuritySummary, WifiKeyMgmt, VpnSecretFlags
  • list_saved_connections, list_saved_connections_brief, list_saved_connection_ids, get_saved_connection, get_saved_connection_raw, delete_saved_connection, update_saved_connection, reload_saved_connections
  • Errors: SavedConnectionNotFound, MalformedSavedConnection
  • Proxies: NMSettingsProxy, NMSettingsConnectionProxy
  • Example: saved_list
  • list_saved_connections now returns Vec<SavedConnection> (was Vec<String>). Replacement for name-only list: list_saved_connection_ids.

Internal

  • Removed list_saved_connections from connection_settings (superseded by core/saved_connection).
  • List path uses buffer_unordered(16) over ListConnections + per-path GetSettings + decode; malformed profiles are skipped with warn!.

@cachebag cachebag self-assigned this Apr 25, 2026
@cachebag cachebag added feature New feature or request api-surface Public API design, re-exports, and semver-relevant changes refactor Change or improve code nm-compat NetworkManager compatibility or runtime rejection zbus zbus API surface labels Apr 25, 2026
@cachebag cachebag merged commit 69790aa into development Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-surface Public API design, re-exports, and semver-relevant changes feature New feature or request nm-compat NetworkManager compatibility or runtime rejection refactor Change or improve code zbus zbus API surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant