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

Re: xpdf needs an entry in mailcap



[  I goofed on the first message.  Use this one instead.  :-]


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


I suggest the following in the postinst:

if [ -x /usr/sbin/install-mime ]
then
  install-mime --install --package=xpdf --content=application/pdf \
               --description='Adobe "Acrobat" File' --nametemplate="%s.pdf" \
               --view="/usr/bin/X11/xpdf %s" --test='test "$DISPLAY" != ""'
fi


And the following in the prerm:

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


The 'if' statements can be removed if you want to add a dependancy on
"mime-support (>=2.0)".

                                        Brian
                               ( bcwhite@verisim.com )

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



Reply to: