retrofe new version that stops ampli when necessary, start_launcher stopping/restrarting ampli when necessary

This commit is contained in:
Vincent-FK
2021-01-06 02:04:52 +01:00
parent 4243dd85b6
commit a0b6d3f8e8
2 changed files with 9 additions and 1 deletions

View File

@@ -39,6 +39,9 @@ while true; do
else
if [ -f "${GMENU2X_FILE}" ]; then
# Force stop ampli (no sound in gmenu2x)
start_audio_amp 0
# Launch gmenu2x
gmenu2x&
else
@@ -53,6 +56,11 @@ while true; do
wait $!
erase_pid
# Restart ampli audio if necessary
if [[ "$(volume_get)" -ne "0" ]]; then
start_audio_amp 1 >/dev/null 2>&1
fi
# In case retrofe quits with errors, clear graphic VT
termfix_all
fi