* Dario Niedermann, 2019-05-04 09:37 UTC:
From the symptoms it would seem that way. When I press 'm' on the
text/html part of an email, the '/usr/bin/sensible-browser' shell script
is started (as per mailcap) but then the X11 browser doesn't find temp
file 'mutt.html' in my ~/tmp/.
If I insert a "sleep 10" in '/usr/bin/sensible-browser' between
the browser call and the script's exit, the browser finds the '~/tmp/mutt.html' file.
So it seems that there's a race going on between the browser and Mutt's unlink().
It feels like a race but actually is not a race, Mutt removes the temp
file when the command invoked returns, Mutt does not know whether the
command placed any other command in the background which didn't digest
the file yet when the command returns.
So the correct invocation in this case is to place a sleep or any other
means that makes the invoked script wait the needed amount of time
before it returns.
Instead of modifying /usr/bin/sensible-browser I'd rather use a script
that itself calls /usr/bin/sensible-browser and then waits some seconds.
I'm using Mutt 1.10.1, but I haven't seen this problem mentioned in the release notes of more recent versions.
This is not new behaviour, afaik it has always been like that.
Eike
--
OpenPGP/GnuPG encrypted mail preferred in all private communication.
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A Use LibreOffice!
https://www.libreoffice.org/
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)