Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: initial support for online/offline status via systemd-networkd #129

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jokeyrhyme
Copy link
Contributor

@jokeyrhyme jokeyrhyme commented Sep 21, 2024

  • I run COSMIC on Arch Linux without network-manager with wpa_supplicant, instead preferring to use systemd-networkd with iwd
  • cosmic-greeter currently shows a network indicator using information retrieved from network-manager (via D-Bus)
  • this PR adds an optional dependency on the https://crates.io/crates/zbus_systemd crate which is maintained by some of the zbus folks
  • this PR uses this crate to listen for signals from the systemd-networkd D-Bus service and otherwise interrogate it to determine the online/offline status, to feed the same network indicator that would otherwise be populated by the data from network-manager
  • I have not tested this on a system that has both network-manager and systemd-networkd in an operational state (how common is this setup?)
  • I do intend to follow-up with the missing wireless-signal-strength functionality (and later apply this same work to cosmic-applets)

@jokeyrhyme
Copy link
Contributor Author

Alternatively, perhaps the network-manager versus systemd-networkd concern should be abstracted away so it doesn't belong here?

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