Skip to content

feat: suport systemd type=Notify ordering - #323

Open
waltmck wants to merge 3 commits into
wayle-rs:masterfrom
waltmck:systemd-notify
Open

feat: suport systemd type=Notify ordering#323
waltmck wants to merge 3 commits into
wayle-rs:masterfrom
waltmck:systemd-notify

Conversation

@waltmck

@waltmck waltmck commented Jul 8, 2026

Copy link
Copy Markdown

Makes Wayle signal NOTIFY_SOCKET after all service constructors finish. In particular, this (combined with tweaking the .service file to use Type=notify and enforce ordering) prevents xdg-autostart-ed apps from starting too soon and trying to send a notification before Wayle finishes setting up its notification service. Previously, this race could lead to two undesirable outcomes

  • Missed notifications
  • (with wayle-services #36) A GApplication incorrectly falling back to org.freedesktop.Notifications even when org.gtk.Notifications is available

sd_notify signaling only happens when Wayle is run with wayle shell, not with wayle panel start (this is to prevent unexpected behavior on misconfigured setups that use exec-start=wayle panel shell or similar in a compositor service with Type=notify but without NotifyAccess=main; in this case, Wayle might incorrectly signal readiness for the compositor service it runs in rather than for itself).

Added a new dependency sd-notify, and also needed to fix(?) a build script bug that led to fragile link ordering guarantees.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant