Fonyx Classic confinement request

name: fonyx

description: Fonyx is a per-application audio mixer and router for Linux, built on PipeWire. A background daemon places each application’s audio stream in a user-defined group with its own fader and DSP chain (EQ, compressor, gate, filters, pan), and routes each group to one or more output devices. A desktop UI and a CLI control the daemon over D-Bus.

snapcraft: https://github.com/ArdenDiago/Fonyx/blob/main/snap/snapcraft.yaml

upstream: https://github.com/ArdenDiago/Fonyx

upstream-relation: I am the upstream author and maintainer.

supported-category: None of the listed categories is an exact fit. Fonyx is a user-session audio routing tool. It doesn’t manage the system; it only manages the user’s own PipeWire session. I’m asking for classic because, as far as I can tell, snapd has no interface for this use case.

reasoning: The daemon has to control 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 moves other applications’ output streams into them, linking ports and removing those streams’ existing links to hardware
  • it creates playback streams on specific hardware devices chosen by the user
  • it sets per-stream and per-device volume and mute in WirePlumber through wpctl

audio-playback and audio-record only let a snap play and record its own streams. As far as I can tell, no interface gives access to the session-manager-level PipeWire graph that a mixer or router needs (creating and destroying links between other clients’ ports). Under devmode the snap works, and our full CLI and integration test suites pass, but devmode can’t be released to stable.

Yes I understand that strict confinement is generally preferred over classic. Yes I’ve tried the existing interfaces to make the snap to work under strict confinement.

This request has been added to the queue for review by the @reviewers team.

Please see:

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.