I am currently developing an application that uses joystick input and generates different wave sounds using SDL. While the implementation works without any issues, once I package my application using snapcraft, my application is not able to generate sounds nor getting joystick input.
The interfaces that my application uses are:
- x11
- network
- pulseaudio
- network-bind
- system-observe
- network-observe
Additionally, when running my application from a terminal, I get the following errors/warnings:
shm_open() failed: Permission denied
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
XmbTextListToTextProperty result code -2
These warnings do not appear if I run my application the "classic" way (sudo make install). Is it possible to configure my snapcraft.yaml
to let SDL2 work correctly?