I have a problem with configuring ALSA. The ALSA uses asound.conf file that lies in $SNAP/etc/asound.conf, but sometimes during application running I need to modify it to be able to record sound from microphone. Unfortunately, it’s not possible due to $SNAP/etc being read-only filesystem. So I thought I’ll create asound.conf in $SNAP_DATA and symlink in $SNAP/etc that will point to this file.
How to do it? I tried layouts and installation hook, but nothing works.