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): propagate ydotool socket to spawned clients (#962)

Gabriel Steind67878f468d2
diff --git a/src/helpers/clipboard.js b/src/helpers/clipboard.js
index ed441b2e0..cd3bbaf6b 100644
--- a/src/helpers/clipboard.js
+++ b/src/helpers/clipboard.js
@@ -350,7 +350,10 @@ class ClipboardManager {
for (const socketPath of socketPaths) {
try {
- if (fs.statSync(socketPath)) return true;
+ fs.accessSync(socketPath, fs.constants.W_OK);
+ // Export so spawned ydotool clients inherit this socket instead of their own default.
+ process.env.YDOTOOL_SOCKET = socketPath;
+ return true;
} catch {}
}