Why strict confinement can’t work: The daemon has to own and rewire the user’s whole PipeWire graph, not just play or record its own audio:
it watches every node, port and link in the session through the PipeWire registry
it creates virtual sinks and links other applications’ output streams into them, port by port, and removes their existing links to hardware
it changes per-stream and per-device volume and mute in WirePlumber by running the host’s wpctl
it creates playback streams to specific hardware devices, chosen by the user
The audio-playback and audio-record interfaces only allow a snap to play and record its own streams. No interface gives access to the PipeWire session-manager graph, so other applications’ streams can’t be routed. Devmode works, but it can’t be released to stable.
Classic build details: The snap runs unpatched binaries against the host’s PipeWire, WirePlumber, and WebKitGTK 4.1, which it needs anyway because it controls the host’s audio session. It doesn’t bundle any libraries. A CI-built classic snap passed the project’s full CLI and integration test suites.
Revision 0.1.3 is currently held for manual review with “confinement ‘classic’ not allowed”.
Your app must fit into one the supported categories and must not clash with one of the unsupported ones listed on the page.
Please take also point 2 of the last paragraph into account, classic snaps come at a very high maintenance cost, unlike with strict snaps where you can use extensions to get all dependencies you must make sure to ship everything bundled with the snap yourself as stage-packages (for desktop apps this is usually a very long list for the whole gnome stack)…
Beyond the you must make sure that you manually binary patch the RPATH and interpreter defaults in all libraries and binaries inside a classic snap to not accidentally use any library from the host, else it will just badly crash with libc version errors or worse stuff.
Especially since this is a classic snap your QA pipeline should involve testing on older Ubuntu releases and non-ubuntu distros to make sure you catch such library leaks.
Please also see:
What exact issues did you have when testing with the pipewire interface ? It should give you full access to the server socket so your app should be able to fully use all features the daemon provides through it when you have the correct libraries bundles for this.
Thanks, you were right. I hadn’t actually tested strict confinement with the PipeWire interface. Fonyx now builds as a strict snap, and with the interface connected, its full test suite passes under AppArmor on Ubuntu 24.04. I’m withdrawing the classic request.
Instead I’d like to request auto-connection for fonyx of:
pipewire: Fonyx is a per-application audio mixer. Its daemon creates virtual sinks and relinks other applications’ audio streams through them to the user’s output devices. That is its whole function and it can’t work without the PipeWire socket.
fonyx:fonyx-dbus-client → fonyx:fonyx-dbus: the snap’s own CLI and UI talk to its daemon over the session-bus name org.fonyx.Daemon.
Optionally login-session-observe (re-applies routing after resume from suspend) and system-observe (CPU/RAM readout). The app works without both.
I understand that pipewire is a core requirement and fits the application’s functionality. However, access granted by pipewire interface is not restricted to streams created by the snap and therefore requires a high level of trust in the application and its publisher. Thus, I believe that considering auto-connection for pipewire would require publisher vetting.
Looking at the upstream repository, it seems to be a new project with little to no community around it. If the snap is developed and distributed by an organization, it may still be possible to meet the vetting requirements by completing the verified account process.
If applying for a verified account is not an option here, I think we should stick to manual connection for the time being. Please note that your application can use snapctl is-connected to check whether an interface is connected at runtime and provide the user with instructions on how to manually connect the interface if needed.
I believe granting the requested dbus connection is appropriate in this case, while login-session-observe and system-observe should possibly remain manually-connected in any case.