Public bug reported:
In order for a snap to successfully connect to PulseAudio, the following
needs to be done:
1) request and connect one of pulseaudio or audio-playback (mentioned for
completeness)
2) add ${SNAP}/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio to LD_LIBRARY_PATH
3) point libpulse at the pulseaudio socket, e.g., in a wrapper:
papath="$XDG_RUNTIME_DIR/../pulse/native"
if [ ! -e "$papath" ]; then
echo "Cannot not find '$papath'"
exit 1
fi
export PULSE_SERVER="unix:$papath"
(I got this from tests/lib/snaps/test-snapd-pulseaudio/files/bin/pawrap
in the snapd source, which seems to imply this is how it's designed to
work.)
Steps 2 and 3 seem like they should be handled by some part of the
system, if not necessarily snapd, and not left to the snapper to
discover for themselves.
** Affects: snapd (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1879229
Title:
pulseaudio/audio-playback are difficult to use
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1879229/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs