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

xpdf needs an entry in mailcap



The "xpdf" postinst needs to add itself to the mailcap file so it can
be spawned by web browsers.

I'd suggest the following in the postinst:

if [ -x /usr/sbin/install-mime ]
then
   install-mime	--install --package=xpdf --content=application/pdf \
		--view="/usr/bin/X11/xpdf %s" --test='test "$DISPLAY" != ""' \
		--comment="A generic PDF viewer for X-Windows"
fi


And the following in the prerm:

if [ -x /usr/sbin/install-mime ]
then
   install-mime	--remove --package=xpdf
fi

                                        Brian
                               ( bcwhite@verisim.com )

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



Reply to: