Published on Tagged in OpenBSD
I spent the better half of an evening trying to figure out why the externalpipe
patch on the suckless terminal (st
) wasn’t working under OpenBSD.
Turns out it was a simple one line fix:
#ifdef __OpenBSD__ -if (pledge("stdio rpath tty proc", NULL) == -1) +if (pledge("stdio rpath tty proc exec", NULL) == -1) die("pledge\n"); #endif close(s);adding “exec” allows
externalpipe
to cut through pledge
and deliver the contents of the terminal to your url handling script of choice.