[dev] [dmenu] trying to run non-blocking patch

From: <kojicomics_AT_cocaine.ninja>
Date: Fri, 14 Sep 2018 17:01:48 +0000

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
Received on Fri Sep 14 2018 - 19:01:48 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 14 2018 - 19:12:07 CEST