/usr/share/alsa missing within snap

Bug #1877601 reported by Roman Odaisky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

$ ls /snap/chromium/current/usr/share/alsa
alsa.conf alsa.conf.d cards pcm pulse-alsa.conf smixer.conf sndo-mixer.alisp topology ucm

$ sudo nsenter -m -t $(pgrep --oldest chromium) ls /usr/share/alsa
ls: cannot access '/usr/share/alsa': No such file or directory

For this reason there’s no sound. How to make sure that /usr/share/alsa which is present in the snap does not somehow go missing when the snap runs?

Revision history for this message
Olivier Tilloy (osomon) wrote :

This is the first report of sound not working in the chromium snap. Are you not using pulseaudio?

Changed in chromium-browser (Ubuntu):
status: New → Incomplete
Revision history for this message
Roman Odaisky (to-roma-from-lp) wrote :

I am not. This is certainly not the place to discuss advantages and drawbacks of pulseaudio, of which it has both, but seeing as both Chromium and snapd itself support ALSA, the chromium snap should also support it.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Sure, I didn't imply that you should be using PA. Can you share examples of other snaps with working sound over ALSA ? Thanks.

Revision history for this message
Roman Odaisky (to-roma-from-lp) wrote :

I’m not running any other snaps, which one would you recommend to test this?

Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Roman Odaisky (to-roma-from-lp) wrote :

`snap connect chromium:alsa` and variations thereof fail with “error: snap "chromium" has no plug named "alsa"”. How to connect?

Revision history for this message
Sebastien Bacher (seb128) wrote :

The chromium snaps need work, it's not something you can do now

Revision history for this message
Roman Odaisky (to-roma-from-lp) wrote :

So in general it is not possible to connect an interface which the snap didn’t request? If not, sounds like a powerful feature to add. Forcing a custom interface on a snap can be used to affect its filesystem in the desired way.

Revision history for this message
Olivier Tilloy (osomon) wrote :

@Roman: the telegram-desktop snap has the alsa plug, so you could try this one, first with the interface not connected (to confirm you're seeing the same issue as with the chromium snap), then connect the alsa interface and let us know whether you're able to play back sound in the snap. Thanks!

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for chromium-browser (Ubuntu) because there has been no activity for 60 days.]

Changed in chromium-browser (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.