Skip to content

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

fix(linux): add KDE D-Bus path to updateHotkey

Gabriel Stein740b154427e3
diff --git a/src/helpers/hotkeyManager.js b/src/helpers/hotkeyManager.js
index 96600ff25..3409d600d 100644
--- a/src/helpers/hotkeyManager.js
+++ b/src/helpers/hotkeyManager.js
@@ -861,6 +861,28 @@ class HotkeyManager {
};
}
+ if (this.useKDE && this.kdeManager) {
+ debugLogger.log(`[HotkeyManager] Updating KDE hotkey to "${hotkey}"`);
+ const success = await this.kdeManager.registerKeybinding(hotkey, "dictation", callback);
+ if (!success) {
+ return {
+ success: false,
+ message: `Failed to update KDE hotkey to "${hotkey}". Check the format is valid.`,
+ };
+ }
+ this.currentHotkey = hotkey;
+ const saved = await this.saveHotkeyToRenderer(hotkey);
+ if (!saved) {
+ debugLogger.warn(
+ "[HotkeyManager] KDE hotkey registered but failed to persist to localStorage"
+ );
+ }
+ return {
+ success: true,
+ message: `Hotkey updated to: ${hotkey} (via KDE D-Bus shortcut)`,
+ };
+ }
+
const result = this.setupShortcuts(hotkey, callback);
if (result.success) {
const saved = await this.saveHotkeyToRenderer(hotkey);