[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#4918: Lynx ignores mailcap under Xwindows



Package: lynx
Version: 2.6-1

The Lynx web browser reads both the system wide and personal
mailcap and mime.type files.  However, it tests the environment
for the variable DISPLAY.  Thus, under Xwindows, it uses it's
own compiled in values for browsers and viewers.  Thus (for
example) it is not possible to specify "xloadimage" as a browser
instead of "xv %s &" (the compile time default), without
explicitly unsetting the DISPLAY variable.

Work-arounds from the user's point of view are to create an
alias such as:

alias lynx="( unset DISPLAY ; lynx )"

Or to rename either lynx or xv to another name, and create a
script that simulates the correct behavior:

cd /usr/bin/
mv xv xv.real
edit xv

(contents of typical pseudo xv script:)
--------
#!/bin/bash
xloadimage $*
--------
chmod +x xv

The second option is more flexible, but fails in the regard that
options cannot be passed to the browser/viewer from the mailcap
entry, and the "solution" will be obliterated whenever the
package is upgraded.

(I include the workarounds for the benefit of the casual reader ;)

--kmb203@psu.edu---------------Debian/GNU--1.1---Linux--2.1.3---
 Develop free apps?  http://www.jagunet.com/~braddock/fslu/org
-----------------------------------------------------------------
We believe in the therapy of sin.  We believe that adultery is
fun. We believe that sodomy's OK.  We believe that taboo's are
taboo.
				-- Steve Turner, "Creed"

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: