Trying to run a flatpak on a network namespace as a normal user

Hi! I'm trying to run parsec flatpak under a network namespace (work stuff). I'm using:
sudo ip netns exec vpnnamespace sudo -u myuser -- sh -c 'flatpak run --branch=stable --arch=x86_64 --command=/app/bin/parsec --file-forwarding com.parsecgaming.parsec @@u %u @@'
Which launchs parsec, but it does bring some error about not being able to get to work with Pulseaudio (thus audio not working), I'm gessing some flatpak permission issues? (launching normally the audio does work)
This is the audio error btw:
ALSA lib ../../pulse/pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused

[D 2024-05-24 08:04:09] MTY_AudioCreate: 'snd_pcm_open' failed with error -111
Any idea?
Thanks!
Was this page helpful?