Skip to content

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

refactor: guard hyprctl detection with commandExists

Gabriel Steindf2888c5f19b
diff --git a/src/helpers/clipboard.js b/src/helpers/clipboard.js
index 956fb440a..030d9939b 100644
--- a/src/helpers/clipboard.js
+++ b/src/helpers/clipboard.js
@@ -507,6 +507,7 @@ class ClipboardManager {
}
_detectHyprlandWindowClass() {
+ if (!this.commandExists("hyprctl")) return null;
try {
const result = spawnSync("hyprctl", ["activewindow", "-j"], { timeout: 1000 });
if (result.status !== 0) return null;