pulseaudio/audio-playback are difficult to use
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
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}
3) point libpulse at the pulseaudio socket, e.g., in a wrapper:
papath=
if [ ! -e "$papath" ]; then
echo "Cannot not find '$papath'"
exit 1
fi
export PULSE_SERVER=
(I got this from tests/lib/
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.
I can fully confirm this, having gone through the exercise myself this weekend.