Skip to content

feat: fd-based readiness notification#791

Open
Senderman wants to merge 1 commit intomangowm:mainfrom
Senderman:feat/readiness-notification
Open

feat: fd-based readiness notification#791
Senderman wants to merge 1 commit intomangowm:mainfrom
Senderman:feat/readiness-notification

Conversation

@Senderman
Copy link

@Senderman Senderman commented Mar 20, 2026

Hello!

There are cases when users would like to launch their wayland compositor via supervision suites, like systemd/runit/s6 etc.

And some of the supervision suites provide easy-to-implement mechanism to notify the supervisor that process is not just started, but "ready". You can read more about it here - https://skarnet.org/software/s6/notifywhenup.html

This PR introduces -r <fdNum> option for mango command. When specified, and fdNum > 2 (because 0, 1 and 2 are stdin, stdout, stderr), it would write \n to the given file descriptor and close it just before running wl_display_run(), which would notify the supervision suite that mangowc is ready (the wayland socket is up, the inital setup and variables are set etc), so the supervision suite can launch other services that depend on mango (e.g. swwwd, fcitx, xdg desktop portals)

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