On 1/24/25 09:47, Greg Wooledge wrote: > 2) At least one of my environment variables is required: > > hobbit:~$ aplay /usr/share/sounds/alsa/Side_Left.wav > Playing WAVE '/usr/share/sounds/alsa/Side_Left.wav' : Signed 16 bit Little > Endian, Rate 48000 Hz, Mono > hobbit:~$ env - aplay /usr/share/sounds/alsa/Side_Left.wav > ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave > aplay: main:831: audio open error: No such file or directory > > So then the question is *which* environment variable it is. I would > suspect it's one of the XDG_ variables, but I'm not in the mood to go > through them one by one to see which one makes the audio start working.
I did it the other way, by seeing which I remove to make the audio stop working. Probably easier in case there were more than one. Anyhow my testing shows the critical variable to be XDG_RUNTIME_DIR .