On 1/24/25 13:33, Roger Price wrote: > On Fri, 24 Jan 2025, e...@gmx.us wrote: > >> On 1/24/25 09:47, Greg Wooledge wrote: >> >>> 2) At least one of my environment variables is required: >>> >>> So then the question is *which* environment variable it is. I would >>> suspect it's one of the XDG_ variables, >> >> 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 . > > I found that XDG_RUNTIME_DIR is necessary but not sufficient. I added > XDG_RUNTIME_DIR="/run/user/$(id -u)" to my personal crontab, but this did not > solve the problem. I added > > export XDG_RUNTIME_DIR="/run/user/$(id -u)" > > to bark.sh, but this also failed to solve the problem. Roger
Maybe a difference in some software? I ran eben@cerberus:~$ env - XDG_RUNTIME_DIR=/run/user/1000 /usr/bin/aplay /export/media/sounds/woow1.wav Playing WAVE '/export/media/sounds/woow1.wav' : Unsigned 8 bit, Rate 11025 Hz, Mono and it worked. eben@cerberus:~$ uname -r 6.1.0-30-amd64 eben@cerberus:~$ cat /etc/debian_version 12.9 eben@cerberus:~$ aplay --version aplay: version 1.2.8 by Jaroslav Kysela <pe...@perex.cz>