Tässä patchit. Näistä siis ensimmäinen suoritettiin ja se käytti muita kolmea (oo-calc-xls.patch, oo-impress-ppt.patch ja oo-writer-doc.patch ). Ainakaan koekäyttö ei tuottanut haluttua tulosta.
(Muutama google-yritys löytää alkuperäinen scripti tuottivat vesiperän. Löysin tosin samaa kommenttia eräästä v. 2003 kirjoitetusta perl-scriptistä. Jostain nyysseistä mä sen ekankin löysin.)
#!/bin/sh
# this script changes the default formats to .doc/.xls/.ppt rather than the
# native OpenOffice.org formats. Yes, that's ugly - but it makes a huge
# difference in the integration of OOo into MS dominate environments.
if [ -d /usr/lib/openoffice.org2.0/share/registry/modules/org/openoffice/Setup ]
then
BASE=/usr/lib/openoffice.org2.0/share/registry/modules/org/openoffice/Setup
elif [ -d /usr/lib/openoffice2/share/registry/modules/org/openoffice/Setup ]
then
BASE=/usr/lib/openoffice2/share/registry/modules/org/openoffice/Setup
fi
PATCHES=$PWD
cd $BASE
if [ -f $BASE/Setup-calc.xcu -a -f $PATCHES/oo-calc-xls.patch ]
then
patch -p10 -s -N < $PATCHES/oo-calc-xls.patch &> /dev/null
fi
if [ -f $BASE/Setup-impress.xcu -a -f $PATCHES/oo-impress-ppt.patch ]
then
patch -p10 -s -N < $PATCHES/oo-impress-ppt.patch &> /dev/null
fi
if [ -f $BASE/Setup-writer.xcu -a -f $PATCHES/oo-writer-doc.patch ]
then
patch -p10 -s -N < $PATCHES/oo-writer-doc.patch &> /dev/null
fi
oo-impress-ppt.patch
--- /usr/lib/openoffice.org2.0/share/registry/modules/org/openoffice/Setup/Setup-impress.xcu.orig 2005-08-29 15:33:10.000000000 -0700
+++ /usr/lib/openoffice.org2.0/share/registry/modules/org/openoffice/Setup/Setup-impress.xcu 2005-08-29 15:37:58.000000000 -0700
@@ -7,7 +7,7 @@
<value>DrawImpressCommands</value>
</prop>
<prop oor:name="ooSetupFactoryDefaultFilter">
- <value>impress8</value>
+ <value>MS PowerPoint 97</value>
</prop>
<prop oor:name="ooSetupFactoryEmptyDocumentURL">
<value>private:factory/simpress?slot=6686</value>
oo-writer-doc.patch:
--- /usr/lib/openoffice.org2.0/share/registry/modules/org/openoffice/Setup/Setup-writer.xcu.orig 2005-08-29 15:32:57.000000000 -0700
+++ /usr/lib/openoffice.org2.0/share/registry/modules/org/openoffice/Setup/Setup-writer.xcu 2005-08-29 15:33:29.000000000 -0700
@@ -39,7 +39,7 @@
<value>WriterCommands</value>
</prop>
<prop oor:name="ooSetupFactoryDefaultFilter">
- <value>writer8</value>
+ <value>MS Word 97</value>
</prop>
<prop oor:name="ooSetupFactoryEmptyDocumentURL">
<value>private:factory/swriter</value>
oo-calc-xls.patch:
--- /usr/lib/openoffice.org2.0/share/registry/modules/org/openoffice/Setup/Setup-calc.xcu.orig 2005-08-29 15:33:02.000000000 -0700
+++ /usr/lib/openoffice.org2.0/share/registry/modules/org/openoffice/Setup/Setup-calc.xcu 2005-08-29 15:37:35.000000000 -0700
@@ -7,7 +7,7 @@
<value>CalcCommands</value>
</prop>
<prop oor:name="ooSetupFactoryDefaultFilter">
- <value>calc8</value>
+ <value>MS Excel 97</value>
</prop>
<prop oor:name="ooSetupFactoryEmptyDocumentURL">
<value>private:factory/scalc</value>