On 2021/10/29 14:08, Ingo Schwarze wrote: > Hi Stuart, > > Stuart Henderson wrote on Fri, Oct 29, 2021 at 10:53:41AM +0100: > > On 2021/10/28 23:19, Klemens Nanni wrote: > >> On Fri, Oct 29, 2021 at 12:57:54AM +0200, Ingo Schwarze wrote: > > >>> MANPAGER=firefox man -T html $(ifconfig -C) > > >> This doesn't work if firefox is already running as the MANPAGER firefox > >> process exits immediately after sending the file/link to the running > >> process, which causes mandoc to exit after removing the temporary file, > >> by which time firefox fails to open the no longer exiting file. > >> > > > I use mutt_bgrun for things like this > > I don't see how that can possibly help.
Oh, of course you're right - I was confused between my helper scripts. The one I actually use for html in mutt looks like this, so it's not any user for MANPAGER.. tmp=`mktemp -d /tmp/mutthtml.XXXXXXXXX` || exit 1 mhonarc -rcfile ~/.m2h_rcfile -single > $tmp/mail.html (chrome $tmp/mail.html 2>/dev/null; sleep 30; rm -r $tmp) &