[K12OSN] openoffice-ms-format-defaults.sh script broken for K12ltsp FC4?
Wilson
wilson at wilsonch.gotdns.com
Sat Aug 27 21:47:39 UTC 2005
Anyone fixed the openoffice-ms-format-defaults.sh script yet? The script
that is included in the newest distro of K12ltsp points to the ooo-1.1
directory, but FC4 uses OpenOffice 2.0. Is the fix as simple as replacing
this line?
FILE="/usr/lib/ooo1.1/share/registry/data/org/openoffice/Office/TypeDetectio
n.xcu"
Change to:
FILE="/usr/lib/openoffice.org2.0/share/registry/data/org/openoffice/Office/T
ypeDetection.xcu"
**********************************
*openoffice-ms-format-defaults.sh*
**********************************
#!/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.
#FILE="/usr/lib/openoffice/share/config/registry/instance/org/openoffice/Off
ice/TypeDetection.xml"
FILE="/usr/lib/ooo-1.1/share/registry/data/org/openoffice/Office/TypeDetecti
on.xcu"
[ -f $FILE ] || exit
perl -i.ltsp -p -e "
s/5,calc_MS_Excel_97,com.sun.star.sheet.SpreadsheetDocument,,67,,0,/5,calc_M
S_Excel_97,com.sun.star.sheet.SpreadsheetDocument,,323,,0,/;
s/1,calc_StarOffice_XML_Calc,com.sun.star.sheet.SpreadsheetDocument,,295,,62
00,,/2,calc_StarOffice_XML_Calc,com.sun.star.sheet.SpreadsheetDocument,,55,,
6200,,/;
s/3,impress_MS_PowerPoint_97,com.sun.star.presentation.PresentationDocument,
,67,emp,0,,/3,impress_MS_PowerPoint_97,com.sun.star.presentation.Presentatio
nDocument,,323,emp,0,,/;
s/3,writer_MS_Word_97,com.sun.star.text.TextDocument,,67,CWW8,0,,/3,writer_M
S_Word_97,com.sun.star.text.TextDocument,,323,CWW8,0,,/;
s/1,writer_StarOffice_XML_Writer,com.sun.star.text.TextDocument,,268435751,C
XML,6200,,/1,writer_StarOffice_XML_Writer,com.sun.star.text.TextDocument,,26
8435495,CXML,6200,,/; " $FILE
More information about the K12OSN
mailing list