Announce state on stdout to sync non-socket-activated launch
When not using systemd and its "socket activation" feature to launch PW, for example when launching PW manually from CLI, users are currently "left guessing" to an extent, when PW is ready to be communicated with. The best approach currently seems to be to determine the location of the socket ($XDG_RUNTIME_DIR
and then pipewire-0
, or may this even change?) and then wait for it to appear, but this doesn't seem robust.
It would be free-of-cost and conforming with best practices on unix systems to print an according message to stdout: Either in a recognizable form like PW READY on <socket-path>
or (preferably, in my opinion) at a fixed position, like the 1st line to be printed to stdout.
That way, PW can be brought up reliably without the complex systemd infrastructure and it would help people without systemd (c.f. Gentoo currently offers a script gentoo-pipewire-launcher
with a sleep 1
to wait for PW). Thank you!