Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix(linux): hide push-to-talk option and force tap-to-talk mode
Gabriel Stein2338f22d11d4
diff --git a/src/components/OnboardingFlow.tsx b/src/components/OnboardingFlow.tsxindex c250c003a..af49b8366 100644--- a/src/components/OnboardingFlow.tsx+++ b/src/components/OnboardingFlow.tsx@@ -652,7 +652,7 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {</div>{/* Mode section - inline with hotkey */}- {!isUsingGnomeHotkeys && (+ {getPlatform() !== "linux" && !isUsingGnomeHotkeys && (<div className="p-4 flex items-center justify-between gap-4"><div className="flex-1 min-w-0"><span className="text-xs font-medium text-muted-foreground uppercase tracking-wide">diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsxindex 9178d5bc7..bdc9a4f16 100644--- a/src/components/SettingsPage.tsx+++ b/src/components/SettingsPage.tsx@@ -2632,7 +2632,7 @@ EOF`,)}</SettingsPanelRow>- {!isUsingGnomeHotkeys && (+ {platform !== "linux" && !isUsingGnomeHotkeys && (<SettingsPanelRow><p className="text-xs font-medium text-muted-foreground/80 mb-2">{t("settingsPage.general.hotkey.activationMode")}diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex bfb84313c..9e8224d1b 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -415,10 +415,13 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({},setActivationMode: (mode: "tap" | "push") => {- if (isBrowser) localStorage.setItem("activationMode", mode);- set({ activationMode: mode });+ // Linux has no native key listener for push-to-talk — force tap+ const effective =+ isBrowser && window.electronAPI?.getPlatform?.() === "linux" ? "tap" : mode;+ if (isBrowser) localStorage.setItem("activationMode", effective);+ set({ activationMode: effective });if (isBrowser) {- window.electronAPI?.notifyActivationModeChanged?.(mode);+ window.electronAPI?.notifyActivationModeChanged?.(effective);}},@@ -676,9 +679,10 @@ export async function initializeSettings(): Promise<void> {);}- // Sync activation mode from main process+ // Sync activation mode from main process (Linux forces tap — no native key listener)try {- const envMode = await window.electronAPI.getActivationMode?.();+ let envMode = await window.electronAPI.getActivationMode?.();+ if (window.electronAPI?.getPlatform?.() === "linux") envMode = "tap";if (envMode && envMode !== state.activationMode) {if (isBrowser) localStorage.setItem("activationMode", envMode);useSettingsStore.setState({ activationMode: envMode });