Repository navigation
launcher: add vpn connections as a search provider - #3391
Conversation
Adds a dms_vpn built-in launcher plugin that lists every configured VPN profile and toggles it on enter. Connected rows show a lock icon and a Connected badge, in-progress rows show Connecting, everything else shows a crossed-out key. Profiles come from the network state the shell already fetches at startup, so there is no new timer, process or request. The provider returns nothing when the backend is not NetworkManager. It ships without a trigger. A trigger prefix replaces the whole result set, so claiming "vpn" would have hidden every application whenever someone typed it to find their VPN client. Matching on the vpn keyword instead keeps apps and profiles in the same list. Co-Authored-By: Claude Opus 5 <[email protected]>
|
/claude review |
Claude reviewOne finding; the rest of the provider holds up.
Checked: action round-trip through |
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
|
Accepted Claude's proposed fix. |
|
/claude review |
Claude reviewOne follow-up finding from the guard added since the last review; the rest of the provider still holds up.
Checked: all 7 |
The empty query guard also applied when opening VPN from the Browse section, so the plugin view came up empty. The plugin filter path now opts out of the guard, while the home view still hides the profiles. Co-Authored-By: Claude Opus 5 <[email protected]>
Keywords match by substring, so "connect" also matched "disconnect" and listed connected profiles too. Picking one of those disconnected it. Co-Authored-By: Claude Opus 5 <[email protected]>
|
/claude review |
Claude reviewNo issues found. Checked: the two follow-up commits ( |
Description
Adds a
dms_vpnbuilt-in launcher plugin that indexes every configured VPN profile and toggles it on enter, so a VPN can be brought up or down without leaving the keyboard.Rows reflect connection state: connected profiles get a lock icon and a Connected badge, in-progress ones show Connecting..., the rest get a crossed-out key. The subtitle is the connection type (WireGuard, OpenVPN, and so on), which is also matched when searching.
Profiles come from
DMSNetworkService.profiles, which is populated from the network state the shell already fetches at startup. No new timer, process, subscription or request is introduced, and nothing runs while the launcher is closed. The provider returns nothing when the backend is not NetworkManager.Toggling reuses the existing
toggleVpn, the same call the Control Center VPN list uses, so credential prompts and error toasts behave identically.Two notes on the design:
vpnwould have hidden every application whenever someone typed it to find their VPN client, and would have produced an empty launcher on iwd or wpa_supplicant. Matching on avpnkeyword instead keeps applications and profiles in one list. A trigger can still be set per user in Settings.activatinganddeactivatingin the active connection list, so testing only foractivatedwould have shown a connection still coming up as disconnected while enter tore it down.Type of change
Related issues
Closes #3352
Screenshots / video
Disconnected state:
Connected state:
Checklist
I18n.tr()with translator context, reusing existing terms where possibleGo changes: ranN/A — no Go in this PR, QML onlymake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warningsI have opened a corresponding pull request in dlx-docs to document any new behaviors: https://github.com/AvengeMedia/DankLinux-DocsN/A