KWord/OOo files mime types
David Faure
dfaure at klaralvdalens-datakonsult.se
Fri May 23 21:44:10 BST 2003
On Saturday 24 May 2003 18:45, Daniel Naber wrote:
> Hi,
>
> recently I wanted to test KFind's new content search in OpenOffice.org
> files. It didn't work, the reason was this check:
>
> file->mimetype()=="application/vnd.sun.xml.writer"
Looks correct.
> On my system, OOo Writer files have this mime type:
> "application/x-oowriter".
Your system is old :)
We used to define this mimetype, we have now switched to the official one,
application/vnd.sun.xml.writer
> I want to add more files besides OOo Writer so
> the question is: what mime types will I have to use? Do I have to check
> for two different types per file, or even more?
You could add the old name of the mimetype... however I think this isn't
the right fix. With such a mismatch, the import filters won't work either, etc.
Better have an uninstall.desktop that removes application/x-oowriter,
so that your .sxw files are recognized as application/vnd.sun.xml.writer
> If so, it would be easier
> to just check the file name suffix (nothing bad will happen if a file
> that's not OOo has such a suffix)...
Please don't rely on suffixes only....
--
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
More information about the kde-core-devel
mailing list