Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix: KDE hotkey rollback, GNOME update conflict check, onboarding fallback persistence

Gabriel Stein6eb471dfb93c
diff --git a/src/components/OnboardingFlow.tsx b/src/components/OnboardingFlow.tsx
index 7d7f107d8..39071382f 100644
--- a/src/components/OnboardingFlow.tsx
+++ b/src/components/OnboardingFlow.tsx
@@ -155,16 +155,17 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
checkHotkeyMode();
}, [setActivationMode]);
- // Update wizard state when backend falls back to a different hotkey
+ // Update wizard UI when backend falls back to a different hotkey.
+ // Only update local state — don't persist to localStorage so the app
+ // retries the preferred key on next launch.
useEffect(() => {
const unsubscribe = window.electronAPI?.onHotkeyFallbackUsed?.((data: { fallback: string }) => {
if (data?.fallback) {
setHotkey(data.fallback);
- setDictationKey(data.fallback);
}
});
return () => unsubscribe?.();
- }, [setDictationKey]);
+ }, []);
useEffect(() => {
const modelToCheck = localTranscriptionProvider === "nvidia" ? parakeetModel : whisperModel;
diff --git a/src/helpers/gnomeShortcut.js b/src/helpers/gnomeShortcut.js
index 8c0fec843..5418ed220 100644
--- a/src/helpers/gnomeShortcut.js
+++ b/src/helpers/gnomeShortcut.js
@@ -296,6 +296,13 @@ class GnomeShortcutManager {
const { path: keybindingPath } = getSlotConfig(slotName);
try {
+ const existing = this.getExistingKeybindings();
+ const conflict = this.findConflictingBinding(shortcut, existing, keybindingPath);
+ if (conflict) {
+ debugLogger.log(`[GnomeShortcut] Shortcut conflict on update — "${shortcut}" already used by "${conflict}"`);
+ return false;
+ }
+
execFileSync(
"gsettings",
["set", `${KEYBINDING_SCHEMA}:${keybindingPath}`, "binding", shortcut],
diff --git a/src/helpers/hotkeyManager.js b/src/helpers/hotkeyManager.js
index fad383356..5941c1a71 100644
--- a/src/helpers/hotkeyManager.js
+++ b/src/helpers/hotkeyManager.js
@@ -1009,9 +1009,16 @@ class HotkeyManager {
if (this.useKDE && this.kdeManager) {
debugLogger.log(`[HotkeyManager] Updating KDE hotkey to "${hotkey}"`);
+ const previousHotkey = this.currentHotkey;
await this.kdeManager.unregisterKeybinding("dictation");
const result = await this.kdeManager.registerKeybinding(hotkey, "dictation", callback);
if (result !== true) {
+ if (previousHotkey) {
+ const restored = await this.kdeManager.registerKeybinding(previousHotkey, "dictation", callback);
+ if (restored === true) {
+ debugLogger.log(`[HotkeyManager] Restored previous KDE hotkey "${previousHotkey}"`);
+ }
+ }
const reason = KDE_FAILURE_REASONS[result]?.(hotkey) || i18nMain.t("hotkey.errors.registrationFailed", { hotkey });
return { success: false, message: reason };
}