Commit Graph
1 Commits
Author SHA1 Message Date
burakgizlice 4a5d60095a fix: use SOCK_DGRAM for ydotoold socket (v1.0.4+)
ydotoold v1.0.4+ uses SOCK_DGRAM (unixgram) Unix sockets instead of
SOCK_STREAM. The availability check was using net.DialTimeout("unix", ...)
which only supports stream sockets, causing a "protocol wrong type for
socket" error on systems with newer ydotool versions.

Try unixgram first, then fall back to stream for older versions.
2026-02-13 23:45:43 +03:00