Le Thu, 8 Jul 2021 19:12:29 -0700,
Fernando Lopez-Lezcano <nando(a)ccrma.Stanford.EDU> a écrit :
>> It could also be that running things from
cron does not establish a
>> "session" and then you do not have access permission to audio
>> devices and such (and dbus, as suggested elsewhere in the thread).
>>
>
> It's a long time since I've used root for anything, but I think it
> would still have the required permissions to do anything. I begin to
> wonder if this is by design, but I still don't know if it works for
> anyone else.
On linux, the audio devices can be acceded by only 1 user at a time.
Which imply, instead of being root for everything audio related, I would
login as an user member of the audio group and, instead of using cron,
make a custom user script.