Article View: linux.debian.bugs.dist
Article #4462Bug#1137031: Give a home to the pipewire user
From: Seb Hinderer
Date: Sat, 14 Nov 2026 10:00
Date: Sat, 14 Nov 2026 10:00
44 lines
3330 bytes
3330 bytes
Control: retitle -1 pipewire-system-services: system-wide WirePlumber loses volumes and mute states at each boot
My initial report had two shortcomings: it did not make the consequence
for users clear, and it only considered one particular fix, whereas
the problem can also be addressed in another way (see below).
The consequence for users: volumes, mute states and default devices
are lost whenever the service restarts, in particular at each boot.
The reason: when PipeWire and WirePlumber run as system services,
WirePlumber logs
wp-state: failed to create directory
/nonexistent/.local/state/wireplumber: Permission denied
and cannot save its state.
This is still the case with pipewire 1.6.9-2 and wireplumber 0.5.19-1.
Two ways to fix it come to mind:
- as my initial report proposed, give the pipewire user a home
directory, e.g. /var/lib/pipewire, in
/usr/lib/sysusers.d/pipewire.conf. systemd-sysusers does not create
home directories, so the directory would also have to be created,
e.g. with a tmpfiles.d entry. WirePlumber would then store its state
in the .local/state/wireplumber subdirectory of /var/lib/pipewire;
- or leave the user as it is and have the system wireplumber.service
declare its own state directory:
StateDirectory=wireplumber
Environment=XDG_STATE_HOME=%S
so that WirePlumber stores its state directly in /var/lib/wireplumber.
The second one keeps the fix in wireplumber-system-services, where the
problem shows up, and may thus be preferable.
I can prepare a merge request for whichever approach you prefer.
Thanks,
Seb.
Technical Details
Message-ID:
<NZiI9-bOtj-7@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomodReferences:
<MWcBr-68U4-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod From: Seb Hinderer <sebastien.hinderer@ens-lyon.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1137031: Give a home to the pipewire user Date: Sat, 14 Nov 2026 11:00:01 +0100 Message-ID: <NZiI9-bOtj-7@gated-at.bofh.it> References: <MWcBr-68U4-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sat Nov 14 09:59:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Seb Hinderer <sebastien.hinderer@ens-lyon.org>, 1137031@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-utopia-maintainers@alioth-lists.debian.net X-Debian-Pr-Message: followup 1137031 X-Debian-Pr-Package: pipewire-system-services X-Debian-Pr-Source: pipewire MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Greylist: delayed 411 seconds by postgrey-1.37 at buxtehude; Sat, 14 Nov 2026 09:56:48 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002525 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 44 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: samuel.thibault@ens-lyon.org X-Original-Date: Sat, 14 Nov 2026 10:49:53 +0100 X-Original-Message-ID: <avguwT6XvBFahxuq@om.localdomain> X-Original-References: <177913464271.28601.15637875759548391607.reportbug@127.0.1.1>