Skip to content

Control Center: fix connection state detection and list WireGuard profiles - #45

Open
MythosOfs wants to merge 2 commits into
0-ss:mainfrom
MythosOfs:fix/inactive-connection-state
Open

MythosOfs wants to merge 2 commits into
0-ss:mainfrom
MythosOfs:fix/inactive-connection-state

Conversation

@MythosOfs

Copy link
Copy Markdown

Two small fixes for the Ethernet & VPN list in the Control Center:

  • nmcli -t leaves the DEVICE column empty for profiles that are not active; it does not print -- there. The check against "--" therefore never matched and every Ethernet/VPN profile was rendered as connected.
  • NetworkManager reports WireGuard profiles as type wireguard, so the filter for that section dropped them completely. They are now listed and use the same lock icon as OpenVPN profiles.

Tested on CachyOS with three NetworkManager WireGuard profiles (Proton VPN) plus one active wired connection: only the active connection keeps the "Connected" suffix, the WireGuard profiles show up in the list and can be toggled from there.

nmcli -t leaves the DEVICE field empty for profiles that are not active, so comparing it against "--" never matched and every Ethernet/VPN profile was rendered as connected. Compare against empty as well and derive the active flag from the resulting device name.
NetworkManager reports WireGuard profiles as type "wireguard", so the Control Center filter for the Ethernet & VPN section dropped them. Include that type and use the lock icon for it, like for OpenVPN profiles.
MythosOfs added a commit to MythosOfs/MacShell that referenced this pull request Nov 22, 2026
Bring in Debian 13 support, GIF and WebP widgets, animated album art,
karaoke lyrics, System Monitor, optional Genie minimize, floating window
defaults, uptime, WireGuard, the audio hub, Reminders, Spotlight subtraction,
pinned-only Dock mode, tray collapse, and the unified icon grid.

Keep the fork's existing Spotlight screenshot search and Bluetooth status
reader. Sample Dock icons from the existing Image, fetch Apple Music motion
art from its public album page, and reuse MacLock's existing Spotify helper.
Isolate optional lyrics dependencies in a virtual environment.

Upstream: 0-ss#9, 0-ss#10, 0-ss#11, 0-ss#12, 0-ss#14, 0-ss#19, 0-ss#21, 0-ss#28, 0-ss#45, 0-ss#47,
0-ss#49, 0-ss#50, 0-ss#52, 0-ss#53, 0-ss#54.

Co-authored-by: 4sakenme <thienphutrinh4567@gmail.com>
Co-authored-by: Dexul <lcedu.dev@gmail.com>
Co-authored-by: Doffi4 <206447286+Doffi4@users.noreply.github.com>
Co-authored-by: Hrithik Ram Prasath <220790015+hrithikramprasath@users.noreply.github.com>
Co-authored-by: Marian Barba <134831821+MarianC-programing@users.noreply.github.com>
Co-authored-by: Victor Zwaga <victor.zwaga@gmail.com>
Co-authored-by: freroxx <yikni2829@gmail.com>
Co-authored-by: shuretokki <tri.r.utomo@gmail.com>
Co-authored-by: w4nnnn <irwanfebriansyah112@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant