Setup: clean Debian lenny with KDE 3.5. Then OpenOffice 3.1 backported packages, mime-support from squeeze (it includes mime types for Office 2007 files).
After that, KDE still sees xlsx/docx/pptx files as Zip files so I added the extensions for their respective OO.org applications in Control Center / KDE Components / File associations (ex: *.docx for application/msword, *.xlsx for application/msexcel).
Then log out/log in to KDE, and xlsx/pptx files are correctly associated to openoffice but docx files are still seen as a Zip archive (application/x-zip). I tried with several docx files. Manually associate them with "Open with" is not a solution because then Zip files would also be opened in OO.org.
I have investigate quite as much as I could have ideas but could not pinpoint anything. Anyway here is what I could see:
mime types seem equally well configured for docx and xlsx (and KDE ignores them):
Code: Select all
$ see --debug Desktop/STBw.docx
- parsing parameter "Desktop/STBw.docx"
- Reading mime.types file "/etc/mime.types"...
- extension "docx" maps to mime-type "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
- Reading mailcap file "/etc/mailcap"...
Processing file "Desktop/STBw.docx" of type "application/vnd.openxmlformats-officedocument.wordprocessingml.document" (encoding=none)...
- checking mailcap entry "application/vnd.openxmlformats-officedocument.wordprocessingml.document; soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document"; nametemplate=%s.docx"
- program to execute: soffice -no-oosplash -writer '%s'
- running test: test -n "$DISPLAY" (result=0=true)
- executing: soffice -no-oosplash -writer 'Desktop/STBw.docx'
$ see --debug Desktop/STB4.xlsx
- parsing parameter "Desktop/STB4.xlsx"
- Reading mime.types file "/etc/mime.types"...
- extension "xlsx" maps to mime-type "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
- Reading mailcap file "/etc/mailcap"...
Processing file "Desktop/STB4.xlsx" of type "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" (encoding=none)...
- checking mailcap entry "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; soffice -no-oosplash -calc '%s'; edit=soffice -no-oosplash -calc '%s'; test=test -n "$DISPLAY"; description="Office Open XML Spreadsheet"; nametemplate=%s.xlsx"
- program to execute: soffice -no-oosplash -calc '%s'
- running test: test -n "$DISPLAY" (result=0=true)
- executing: soffice -no-oosplash -calc 'Desktop/STB4.xlsx'
Code: Select all
$ file Desktop/*x
Desktop/sample.pptx: Zip archive data, at least v2.0 to extract
Desktop/STB4.xlsx: Zip archive data, at least v2.0 to extract
Desktop/STBw.docx: Zip archive data, at least v2.0 to extract
relevant KDE configuration files (/usr/share/mimelnk/application/[msword|msexcel].desktop) seem to be configured the exact same way.
Now I am short of ideas... so I hope that someone here can give some good hint to fix or work around this