<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
<div> Hi all,<br></div><div dir="auto"><br></div><div dir="auto">I set up my machine with openRC and debian testing recently. I couldn't get pipewire to work because it was missing an init script. Then I came across the gentoo package contents for pipewire. It contains the following launcher file: <a href="https://gitweb.gentoo.org/repo/gentoo.git/tree/media-video/pipewire/files/gentoo-pipewire-launcher.in">https://gitweb.gentoo.org/repo/gentoo.git/tree/media-video/pipewire/files/gentoo-pipewire-launcher.in</a> <br></div><div dir="auto">Replacing all instances of @GENTOO_PORTAGE_PREFIX@ with exec gave me to following script: <br></div><div dir="auto"><br></div><div dir="auto"><span class="font" style="font-family: monospace, sans-serif;">#!/bin/sh</span><span class="font" style="font-family: monospace, sans-serif;"><br></span></div><div dir="auto"><span class="font" style="font-family: monospace, sans-serif;"><br></span></div><div dir="auto"><span class="font" style="font-family: monospace, sans-serif;">pkill -u "${USER}" -x pipewire\|wireplumber 1>/dev/null 2>&1</span><span class="font" style="font-family: monospace, sans-serif;"><br></span></div><div dir="auto"><span class="font" style="font-family: monospace, sans-serif;">exec /usr/bin/pipewire &</span><span class="font" style="font-family: monospace, sans-serif;"><br></span></div><div dir="auto"><span class="font" style="font-family: monospace, sans-serif;">exec /usr/bin/pipewire -c pipewire-pulse.conf &</span><span class="font" style="font-family: monospace, sans-serif;"><br></span></div><div dir="auto"><span class="font" style="font-family: monospace, sans-serif;">sleep 1</span><span class="font" style="font-family: monospace, sans-serif;"><br></span></div><div dir="auto"><span class="font" style="font-family: monospace, sans-serif;">exec /usr/bin/wireplumber</span><br></div><div dir="auto"><br></div><div dir="auto">Running this (with wireplumber and pipewire (-pulse)) installed works like a charm and as intended. I haven't tested it thoroughly, but it works (tm).  (This is convenient if you want to use e.g. bluetooth headsets or videocalls or screensharing). <br></div><div dir="auto"><br></div><div dir="auto">I don't have a sysvinit machine to test it there, but it should work the same. I'll try to write a proper OpenRC script for it which checks that dbus is running before starting pipewire/wireplumber.<br></div><div dir="auto"><br></div><div dir="auto">I hope this helps someone :)<br></div><div dir="auto"><br></div><div dir="auto">Cheers<br></div><div dir="auto"><br></div><div dir="auto">Matthias</div>  </body>
</html>