Bug#4900: lynx, mailcap, ...
Package: xv
Version: 3.10a-5
> I have been using the web browser lynx because of it's low
> profile memory wise and low resource consumption.
>
> However, recently I got the zgv utility to view pictures with
> SVGALIB. Whenever I click on an inline image though, lynx goes
> to "xv %s &" as the program to display it.
>
> Under X this is fine. Under text mode, it is not: I can rig xv
> to run the zgv program, but it needs to be able to see the
> keyboard.
This is a bug against the "xv" package. It should install
itself into the /etc/mailcap file using "install-mime". As
long as the proper test is specified ('test -n "$DISPLAY"')
then Lynx will ignore that entry when not under X and go to
the next alternative.
xv needs needs postinst/prerm scripts with something like
the following:
----- xv.postinst -----
#! /bin/sh
if [ -x /usr/sbin/install-mime ]
then
install-mime --install --package=xv --content=image/gif \
--description="GIF Image" --nametemplate="%s.gif" \
--test='test -n "$DISPLAY"' \
--view="/usr/bin/X11/xv %s"
install-mime --install --package=xv --content=image/jpeg \
--description="JPEG Image" --nametemplate="%s.jpg" \
--test='test -n "$DISPLAY"' \
--view="/usr/bin/X11/xv %s"
fi
----- xv.postinst -----
----- xv.prerm -----
#! /bin/sh
if [ -x /usr/sbin/install-mime ]
then
install-mime --remove --package=xv
fi
----- xv.prerm -----
The "postinst" should have one call to "install-mime" for every type
of graphic image that xv supports.
Brian
( bcwhite@verisim.com )
-------------------------------------------------------------------------------
measure with micrometer, mark with chalk, cut with axe, hope like hell
--
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: