Hi,

I've applied the non-blocking stdin patch[1] to dmenu. It's working fine when I pipe the initial content (like normal dmenu), but I'm not able to get it working when stdin changes.

What I did so far is create an Unix socket with socat and pipe it to dmenu. Then I just connect to the socket from another TTY to pipe some new lines, but dmenu doesn't refresh the available options:

    (x11 terminal)$ socat UNIX-LISTEN:/tmp/dmenu_test - | dmenu
    (tty)$ ls ~/ | socat UNIX-CONNECT:/tmp/dmenu_test -

I've also tried using `tail -f` this way:

    (x11 terminal)$ tail -f /tmp/dmenu_test | dmenu
    (tty)$ echo 'test' >> /tmp/dmenu_test

This didn't work either..


I've tried these tests patching against both my custom branch (based on master) and the 3c91eed one (original diff version).

What I'm doing wrong? How do you get it working?


Regards,
Rubén Santos


[1] https://tools.suckless.org/dmenu/patches/non_blocking_stdin

Reply via email to