Subject: Bug#4261: Ghostview -- needs MIME entry

From: "Brian C. White" <[email-masked]>
Date: Sat, 24 Aug 1996 20:20:54 -0400

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
                               ( [email-masked] )

-------------------------------------------------------------------------------
    In theory, theory and practice are the same.  In practice, they're not.

---

From: Helmut Geyer <[email-masked]>
Date: Sun, 25 Aug 1996 10:19:19 +0200 (MET DST)

> following to the install scripts:
No, that isn't what should be done, or at least not the only thing.
I'm on my way to produce a second posctscript-viewer (front-end to gs)
called gv, that is in some ways much better than ghostview, though there
are too many differences in the user interface to drop ghostview instead.

I propose to have a virtual package postscript_viewer installing a 
/etc/alternatives - managed binary /usr/bin/X11/ps_view and handling the stuff 
via update-alternatives. 
mime-support should either put/usr/bin/X11/ps_view into mailcap by default
(which is what I propose), or we install it from ghostview and gv using
install-mime.

	Helmut

---

From: "Brian C. White" <[email-masked]>
Date: Sun, 25 Aug 1996 11:15:42 -0400

> are too many differences in the user interface to drop ghostview instead.

Yes, it _is_ what should be done.  "install-mime" handles multiple entries
for the same mime-type.  Thus, if both "ghostview" and "gv" get installed,
the user is given the choice of which is to have priority in the mailcap file.
Trust me, this will work.  It was designed to handle just this case.

Please see the "install-mime" man page for more information.

                                        Brian
                               ( [email-masked] )

---

From: [email-masked] (Emilio Lopes)
Date: Tue, 27 Aug 96 22:30 EST

>>>>> "BCW" == Brian C White <[email-masked]> wrote:

BCW> I suggest making ghostview "Recommends: mime-support".

I don't see why this is necessary. "mime-support" brings no extra
capabilities to ghostview, AFAIK.

Ciao, Emilio.

-- 
                 Emilio C. Lopes <mailto:[email-masked]>
               Instituto de Fisica da Universidade de Sao Paulo
             Caixa Postal 66318, 05389-970 Sao Paulo - SP, BRAZIL
              Phone: (+55) (11) 818-6724 (Voice) / 818-6715 (Fax)

---

From: Ian Jackson <[email-masked]>
Date: Sat, 31 Aug 96 14:10 BST

Brian C. White writes ("Re: Bug#4261: Ghostview and virtual package postscript_viewer"):
...
> Yes, [something] _is_ what should be done.  "install-mime" handles
> multiple entries for the same mime-type.  Thus, if both "ghostview"
> and "gv" get installed, the user is given the choice of which is to
> have priority in the mailcap file.  Trust me, this will work.  It
> was designed to handle just this case.
> 

Would someone please write a paragraph for the policy manual on the
use of install-mime ?  It's OK to refer to the manpage.

Thank you.

Ian.