Skip to content

Conversation

@MrMebelMan
Copy link

  • Fixed an issue where CTRL+C would only interrupt the TTS subprocess instead of exiting the screensaver
  • Updated signal trapping to catch EXIT, INT, TERM, and QUIT signals
  • Modified cleanup function to kill any running speech/animation processes immediately while preserving exit phrases

Fixes #81

@attogram
Copy link
Owner

We found another bug - unrelated to these changes - test workflow is broken! https://github.com/attogram/bash-screensavers/blob/main/.github/workflows/run-tests.yml

Comment on lines -376 to -379
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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better if this fix does not remove the exit phrase. That's a key feature in speaky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot interrupt the speaky

2 participants