Pipewire init script

matthias.geiger1024 at tutanota.de matthias.geiger1024 at tutanota.de
Tue Nov 29 16:23:08 GMT 2022


 Hi all,

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: https://gitweb.gentoo.org/repo/gentoo.git/tree/media-video/pipewire/files/gentoo-pipewire-launcher.in 
Replacing all instances of @GENTOO_PORTAGE_PREFIX@ with exec gave me to following script: 

#!/bin/sh

pkill -u "${USER}" -x pipewire\|wireplumber 1>/dev/null 2>&1
exec /usr/bin/pipewire &
exec /usr/bin/pipewire -c pipewire-pulse.conf &
sleep 1
exec /usr/bin/wireplumber

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). 

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.

I hope this helps someone :)

Cheers

Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20221129/0ac79894/attachment.htm>


More information about the Debian-init-diversity mailing list