From fcc56ec63516d3b43cf862d86e0ea1f4022fc627 Mon Sep 17 00:00:00 2001 From: Douglas Teles Date: Wed, 24 Jun 2026 09:58:46 -0300 Subject: [PATCH] archr-config: corrigir paths Batocera no comando audio output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit audio output X gravava o .asoundrc em /userdata/system/, herdado do Batocera. Em ArchR a homedir de root é /storage, e o ALSA carrega $HOME/.asoundrc, então o arquivo nunca chegava em lugar útil. Move para /storage/.asoundrc. A linha aplay tentava reproduzir /usr/share/sounds/Mallet.wav, que não embarcamos. Trocar pelo launch.ogg dos retroarch-assets (já no rootfs) e silenciar o erro com 2>/dev/null para não derrubar o comando se a saída de áudio acabou de mudar e o aplay falha. Co-Authored-By: Claude Opus 4.7 --- projects/ArchR/packages/archr/sources/scripts/archr-config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/ArchR/packages/archr/sources/scripts/archr-config b/projects/ArchR/packages/archr/sources/scripts/archr-config index 1926277ad6..1eef11fc01 100755 --- a/projects/ArchR/packages/archr/sources/scripts/archr-config +++ b/projects/ArchR/packages/archr/sources/scripts/archr-config @@ -199,17 +199,17 @@ if [ "$command" == "audio" ];then # custom: don't touch the .asoundrc file # any other, create the .asoundrd file if [ "$mode" == "auto" ];then - rm -rf /userdata/system/.asoundrc || exit 1 + rm -rf /storage/.asoundrc || exit 1 elif [ "$mode" != "custom" ];then if echo "${mode}" | grep -qE '^[0-9]*,[0-9]* ' then cardnb=$(echo "${mode}" | sed -e s+'^\([0-9]*\),.*$'+'\1'+) devicenb=$(echo "${mode}" | sed -e s+'^[0-9]*,\([0-9]*\) .*$'+'\1'+) - cat > /userdata/system/.asoundrc < /storage/.asoundrc </dev/null || true fi fi fi