Bug#4261: Ghostview -- needs MIME entry
Package: ghostview
Version: 1.5-8
Ghostview should install itself into the /etc/mailcap entry so mime
compatible programs can use it to view postscript documents.
I suggest making ghostview "Recommends: mime-support" and adding the
following to the install scripts:
debian.postinst
~~~~~~~~~~~~~~~
if [ -x /usr/sbin/install-mime ]
then
install-mime --install --package=ghostview --content=application/postscript \
--description="Postscript Formatted Output" --nametemplate="%s.ps" \
--test='test "$DISPLAY" != ""' \
--view='/usr/bin/X11/ghostview %s' \
--comment="Ghostview is a fairly good front-end for viewing postscript \
and should probably be given a reasonably high priority."
fi
debian.prerm
~~~~~~~~~~~~
if [ -x /usr/sbin/install-mime ]
then
install-mime --remove --package=ghostview
fi
For more information, please see the "install-mime" man page.
Brian
( bcwhite@verisim.com )
-------------------------------------------------------------------------------
In theory, theory and practice are the same. In practice, they're not.
Reply to: