Pulseaudio interface deprecation question


#1

I currently do a few extra things in my snap to make pulse audio work, namely:

environment:
  # pulseaudio
  LD_LIBRARY_PATH: ${SNAP}/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio

and

stage-packages:
  - libpulse0

and, obviously:

plugs: [pulseaudio]

If I read the deprecation post correctly, I shouldn’t need to do anything else except add audio-playback as a plug and eventually remove the pulseaudio plug.

But what about the other stuff?


#2

You still need to have appropriate libraries that can be found by your application. So staging libpulse0 is a good idea. As is setting your LD_LIBRARY_PATH so that the library can be found.


#3

Great. Thanks for the info.