Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

KDE(?) pb: docx files seen as zip file (ok with xlsx/pptx)

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
drinkmilk
Posts: 6
Joined: 2009-08-11 09:21

KDE(?) pb: docx files seen as zip file (ok with xlsx/pptx)

#1 Post by drinkmilk »

Hello,

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'
file utility see all those types as a Zip archive:

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
Opening those files from iceweasel (if attached to a mail for ex.) works (which confirms that mime/mailcap configuration is good).

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 :)

Post Reply