Red Hat Bugzilla – Bug 49970
mc runs lynx in background of current xterm
Last modified: 2013-04-02 00:15:29 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
Description of problem:
When running mc in a xterm or gnome-terminal, etc. and you open a .html
file, mc runs lynx as a background process on the current (pseudo) tty.
This is not very useful :-)
Steps to Reproduce:
1. run mc in an xterm or similar
2. browse to a .html file
3. press enter
Actual Results: Lynx displays the first page of the file with "Press
space for next page" if the file is long enough. However, any keyboard
input actually goes to mc's command line, which is still running in the
foreground! Hitting ^L will refresh mc's display.
Expected Results: Either open a new xterm (but how would mc decide what
sort of xterm program you prefer?) or preferably, run lynx in the
Workaround is to edit the line in the /usr/lib/mc/mc.ext file which runs
lynx on an "Open" event a little bit.
Open=if [ x$DISPLAY = x ]; then lynx -force_html %f; else (lynx %f &); fi
Open=lynx -force_html %f
This will always open the .html file in the foreground of the current
terminal. Works for me ;-)
This bug is also present in RH7.0 and possibly earlier. I haven't checked
platforms other than i386, but suspect they will also have this bug.
We'll pick this up if upstream mc makes the change. Planning to
upgrade to latest mc for the next release.
See http://www.gnome.org/projects/mc to contact the upstream mc mailing list.