Plexamp on linux: no playback

So, I’ve been using plexamp on mobile for a few days now, but when I got back to my desk to try the Linux version I noticed that I couldn’t actually play any tracks… It launches fine, displays my media fine, but when push comes to shove and I actually select a track to play, it loads the “playing view” for a moment before booting me back to the overview, throwing the following message to console:

ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused

Any pointers? I use NixOS:

Linux AquaRing 5.4.99 #1-NixOS SMP Wed Feb 17 09:35:20 UTC 2021 x86_64 GNU/Linux

and pulseaudio 14.2.

Okay I figured it out; it was because Pulseaudio was running as root rather than as my own user. Still… This shouldn’t happen and I’ve never encountered an app that struggled with this.