Comment 11 for bug 133131

Revision history for this message
In , a. Mennucc (mennucc1) wrote :

hi

I use Debian/etch/4.0 and I use the iceweasel version of Firefox 2.0
(unfortunately, there is no build of Firefox 2.0 for amd64 around...
so, I am sorry, I cannot test if what follows really does
happen with Firefox proper - although I would bet that it does)

Suppose that I start
$ iceweasel http://tonelli.sns.it/pub/mennucc1/fuzzyocr/fuzzyocr_2.3b-1.dsc &
from the terminal; that link is of type text/pgp :
then iceweasel offers to open with 'less' ; if I accept,
immediatly the shell reports
 [1]+ Stopped iceweasel
since 'less' wants to access the terminal;
if I foreground iceweasel, then less works on the terminal, and I can
hit 'q' to exit it, and then I can background iceweasel again.

If I start
$ nohup iceweasel http://tonelli.sns.it/pub/mennucc1/fuzzyocr/fuzzyocr_2.3b-1.dsc &
then iceweasel does not hung, and the output of less goes into 'nohup.out'.

If I start iceweasel from a Gnome menu, then the output of less goes into
 ~/.xsession-errors

Anyhow, this bug is not fixed.

The correct way to fix this bug is that iceweasel/firefox must care for the
 'needsterminal' keyword in MIME specification:
$ grep less /etc/mailcap
text/plain; less '%s'; needsterminal
text/*; less '%s'; needsterminal

The above means that less needs a terminal, and so
1) either iceweasel/firefox starts a terminal and less into it ;
 for example, the command
   x-terminal-emulator -e less /tmp/fuzzyocr_2.3b-1.dsc
 works fine in Debian

2) or, otherwise, iceweasel/firefox must ignore any mailcap
  entry that has the keyword needsterminal in it

a.

ps: the original URL does not trigger the bug on Gnome in Debian, since
 Firefox opens it with gedit

ps: please reopen the bug, I do not have powers to do it