feat(linux): add SIGUSR1 signal for transcribe_with_post_process#759
Merged
cjpais merged 4 commits intocjpais:mainfrom Feb 16, 2026
Merged
feat(linux): add SIGUSR1 signal for transcribe_with_post_process#759cjpais merged 4 commits intocjpais:mainfrom
cjpais merged 4 commits intocjpais:mainfrom
Conversation
Register SIGUSR1 alongside SIGUSR2 in the signal handler so Linux users can trigger transcription with post-processing via system signals (e.g. `pkill -SIGUSR1 -x handy`). This mirrors the existing SIGUSR2 toggle pattern and maps to the `transcribe_with_post_process` action already present in ACTION_MAP. Closes cjpais#758 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner
|
Thanks, I simplified and rebased. This is a good and obvious change to have. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SIGUSR1signal handling that maps to thetranscribe_with_post_processaction, enabling Linux users to trigger transcription with post-processing via system signals (e.g.pkill -SIGUSR1 -x handy)SIGUSR2toggle pattern (start/stop withManagedToggleState)transcribe_with_post_process, SIGUSR2 →transcribe(unchanged)Closes #758
Context
Linux desktop users (Pop!_OS, GNOME, Wayland) rely on
pkill -SIGUSR2 -x handyfor basic transcription because Tauri's global shortcut capture doesn't always work under Wayland. This adds a second signal so they can also trigger post-processing transcription without a keyboard shortcut, which also benefits Wayland/GNOME support efforts (PR #572).Changes
src-tauri/src/signal_handle.rs: ImportSIGUSR1, add match arm mapping it totranscribe_with_post_processsrc-tauri/src/lib.rs: ImportSIGUSR1, register it inSignals::newalongsideSIGUSR2Test plan
pkill -SIGUSR2 -x handystill toggles basic transcription (no regression)pkill -SIGUSR1 -x handytoggles transcription with post-processing🤖 Generated with Claude Code