I have been looking at the mime support for OOo and have created the following.
To add mime support to the mailcap file you will need to do the following as per the packaging-manuals. http://www.debian.org/doc/packaging-manuals/mime-policy/ch2.html run if [ -x /usr/sbin/update-mime ]; then update-mime fi from the postinst and postrm files then add in the text below to the file /usr/lib/mime/packages/openoffice.org. This will then be copied to the mailcap file on install and removed after removal. I have not included any support for MS or other formats although that would be simple to do if you think it is correct. John ## -- /usr/lib/mime/packages/openoffice.org -- ## application/vnd.stardivision.calc; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=StarCalc 5.0 ; nametemplate=*.sdc application/vnd.stardivision.chart; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=StarChart 5.0 ; nametemplate=*.sds application/vnd.stardivision.draw; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=StarDraw 5.0 ; nametemplate=*.sda application/vnd.stardivision.impress; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=StarImpress 5.0 ; nametemplate=*.sdd application/vnd.stardivision.math; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=StarMath 5.0 ; nametemplate=*.sdf application/vnd.stardivision.writer-global; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=StarWriter 5.0 Master Document ; nametemplate=*.sgl application/vnd.stardivision.writer; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=StarWriter 5.0 ; nametemplate=*.sdw application/vnd.sun.xml.calc; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=OpenOffice.org 1.0 Spreadsheet ; nametemplate=*.sxc application/vnd.sun.xml.calc.template; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=OpenOffice.org Spreadsheet Template ; nametemplate=*.stc application/vnd.sun.xml.draw; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=OpenOffice.org 1.0 Drawing ; nametemplate=*.sxd application/vnd.sun.xml.draw.template; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=OpenOffice.org Drawing Template ; nametemplate=*.std application/vnd.sun.xml.impress; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=OpenOffice.org 1.0 Presentation ; nametemplate=*.sxi application/vnd.sun.xml.impress.template; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=OpenOffice.org Presentation Template ; nametemplate=*.sti application/vnd.sun.xml.writer; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=OpenOffice.org 1.0 Text Document ; nametemplate=*.sxw application/vnd.sun.xml.writer.global; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=OpenOffice.org 1.0 Master Document ; nametemplate=*.sxg application/vnd.sun.xml.writer.math; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=OpenOffice.org 1.0 Maths Document application/vnd.sun.xml.writer.template; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=OpenOffice.org Text Document Template ; nametemplate=*.stw application/x-staroffice; openoffice %s ; edit=openoffice %s ; test=test "$DISPLAY" != "" ; description=StarOffice 5.0 ## -- end of File -- ## Using this disguting hack I managed to create the OOo mime link file with only miminal editing. run from the dir /usr/share/mimelnk/application which I think is the KDE standard files. for l in * do awk -F"=" ' /^MimeType/ || /Comment=/ || /Patterns=/ {printf $2":" }' $l \ |awk -F":" ' { print $3 "; openoffice %s ; edit=openoffice %s ; test=test \"$DISPLAY\" != \"\" ; description="$1 " ; nametemplate="$2 }' done -- John Cooper |Phone 0114 223 3052 Your Senior IT Administrator |Fax 0114 290 9192 Your Communications - Sheffield |email [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

