Closed fischerling closed 8 years ago
I can't reproduce this on my machine with either st v0.6 or the most recent git version.
Add this line to config.def.h
{ MODKEY, 'u', externalpipe, { .v = "urlscan -n | dmenu -l 10 | xargs -r firefox" } }
Running Archlinux, with libx11 v1.6.3
Am I missing something? Is there something in your environment that's different? I also tried both python2 and python3 just to be sure.
Scott
This is strange. After a restart I also can't reproduce.
I have no idea what could be different after reboot. Pacman.log shows I updated libevdev and lib32-systemd at this day maybe this resulted in some sort of a broken state.
Closing for now. I let you know if I find something related.
urlscan version: 432997f
Backtrace:
Manpage for open(2) says:
_ENXIO O_NONBLOCK | OWRONLY is set, the named file is a FIFO, and no process has the FIFO open for reading. Or, the file is a device special file and no corresponding device exists.
Situation when this happened to me:
macro pager,index \cb <pipe-entry>'eval $BROWSER $(urlscan -n | dmenu -l 15)'<enter> 'Follow links with urlscan
Behaviour:
Conclusion:
If I understand the docstring of close_stdin() correctly, then it is not even needed if urlscan is called with the '-n' flag.