[This has also been reported at
<https://bugs.launchpad.net/ubuntu/+source/mutt/+bug/799627> by me.]
The root source of the bug is that

rm -f $TMPFILE

is run *before* Mutt has had time to read $TMPFILE. This happens only
if the mailto link contains the "body" property and
/usr/bin/x-terminal-emulator -> /etc/alternatives/x-terminal-emulator
-> /usr/bin/gnome-terminal.wrapper (the default in Ubuntu), because
the latter is known to run in the background
<https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/666418>.

An ugly workaround is to assume that Mutt will read the file with the
body text within a second of running x-terminal-emulator:

> sleep 1
rm -f $TMPFILE

Another ugly workaround for this is to use --disable-factory in
gnome-terminal.wrapper:

$ diff -u gnome-terminal.wrapper.orig /usr/bin/gnome-terminal.wrapper
--- gnome-terminal.wrapper.orig 2011-11-24 13:23:47.000000000 +0100
+++ /usr/bin/gnome-terminal.wrapper     2011-11-24 13:21:55.019482796 +0100
@@ -78,4 +78,5 @@
 {
     @args = ('--login', @args);
 }
+push(@args, '--disable-factory');
 exec('gnome-terminal',@args);

A better workaround would be to fix gnome-terminal to use make sure it
doesn't run in the background by default.

-- 
Victor Engmark



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to