From 01310068093c9618318a4dd503c2d40cb11ab2b3 Mon Sep 17 00:00:00 2001 From: Vladyslav Burzakovskyy Date: Tue, 28 Oct 2025 13:48:19 +0100 Subject: [PATCH] fix: handle CTRL+C properly in speaky screensaver by improving signal trapping --- gallery/speaky/speaky.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gallery/speaky/speaky.sh b/gallery/speaky/speaky.sh index af9f43c..a0a8de9 100755 --- a/gallery/speaky/speaky.sh +++ b/gallery/speaky/speaky.sh @@ -373,16 +373,12 @@ wait_for_speech() { cleanup_and_exit() { lov_kill_speech lov_cleanup - local exit_phrase=${exit_phrases[$RANDOM % ${#exit_phrases[@]}]} - lov_say "$exit_phrase" - lov_animate_text_rainbow "$exit_phrase" "${RAINBOW_COLORS[*]}" "$MAX_DISPLAY_TIME" - wait_for_speech lov_show_cursor echo exit 0 } -trap cleanup_and_exit SIGINT +trap cleanup_and_exit EXIT INT TERM QUIT # --- The Main Event --- the_show_must_go_on() {