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): clear stale hotkey registrations on startup
Gabriel Stein3ece1de515fb
diff --git a/src/helpers/hotkeyManager.js b/src/helpers/hotkeyManager.jsindex bf1dc6a80..4d6bed3bd 100644--- a/src/helpers/hotkeyManager.js+++ b/src/helpers/hotkeyManager.js@@ -116,6 +116,10 @@ class HotkeyManager {const alreadyRegistered = globalShortcut.isRegistered(hotkey);debugLogger.log(`[HotkeyManager] Is "${hotkey}" already registered? ${alreadyRegistered}`);+ if (process.platform === "linux") {+ globalShortcut.unregister(hotkey);+ }+const success = globalShortcut.register(hotkey, callback);debugLogger.log(`[HotkeyManager] Registration result for "${hotkey}": ${success}`);@@ -154,6 +158,10 @@ class HotkeyManager {this.mainWindow = mainWindow;+ if (process.platform === "linux") {+ globalShortcut.unregisterAll();+ }+mainWindow.webContents.once("did-finish-load", () => {setTimeout(() => {this.loadSavedHotkeyOrDefault(mainWindow, callback);