Bug 159948 - RTF MIME type incompatible with KDE 3
Summary: RTF MIME type incompatible with KDE 3
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-27 12:23 UTC by Peter Eisentraut
Modified: 2008-11-26 23:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Eisentraut 2008-03-27 12:23:07 UTC
Version:           2.0 alpha-6 (using KDE 3.5.8)
Installed from:    Debian testing/unstable Packages

KWord 2, apparently along with the rest of KDE 4, changed the RTF MIME type from text/rtf to application/rtf.  This is nice, both are accepted by IANA, and OpenOffice uses application/rtf, so everything is more uniform now.  What is not nice, however, is that Konqueror from KDE 3 uses text/rtf, so when using KWord 2 with KDE 3, the MIME type association doesn't work.

Could you, for compatibility in all directions so to speak, add both application/rtf *and* text/rtf to the kword.desktop and kwordpart.desktop files?
Comment 1 David Faure 2008-03-27 19:10:38 UTC
This would give warnings when running kbuildsycoca4, since kde4 (shared-mime-info) doesn't know text/rtf.

This combination (koffice2 in a kde3 desktop) seems quite special; if someone installs that (from sources?), he simply has to add kword to text/rtf in the filetypes module. I don't really want to carry legacy mimetypes in our desktop files for another 5 years, we have to come clean at some point, and since there's finally a standard for this...
Comment 2 Peter Eisentraut 2008-03-27 20:41:55 UTC
You are saying there is finally a standard for this.  Which one are you referring to?  IANA lists both text/rtf and application/rtf without further comment.  If you have a source that says that application/rtf is preferred, then I will gladly abide.
Comment 3 David Faure 2008-03-27 20:56:02 UTC
I am referring to the freedesktop.org shared-mime-info standard, which kde4 is based upon.

( http://standards.freedesktop.org/shared-mime-info-spec/latest/ although the actual database
is more easy to find with CVS or in /usr/share/mime/ on your system )
Comment 4 Peter Eisentraut 2008-05-05 12:25:02 UTC
I find nothing in that standard about what the correct MIME type for RTF is.  It appears that it only describes how a database of MIME types is to be maintained.
Comment 5 David Faure 2008-05-05 14:46:53 UTC
As I said, the actual database of mimetypes is the shared-mime-info package, which should be installed on your system (/usr/share/mime) or which can be downloaded as a source tarball or as CVS.
Or you can trust me, it says:
  <mime-type type="application/rtf">
Comment 6 Peter Eisentraut 2008-05-05 16:45:09 UTC
Maybe I am mixing up cause and effect here, but the fact that /usr/share/mime/application/rtf.xml exists only means that someone put it there, not that it is the only correct choice.  What is to prevent someone from installing text/rtf.xml as well or adding an entry in /usr/share/mime/aliases?  The alias file would seem to be the correct choice.  Who maintains the aliases file?
Comment 7 David Faure 2008-05-05 17:20:51 UTC
On Monday 05 May 2008, Peter Eisentraut wrote:
> Maybe I am mixing up cause and effect here, but the fact that /usr/share/mime/application/rtf.xml exists only means that someone put it there, not that it is the only correct choice.


"Someone" is the shared-mime-info package, which shows that this is the now-standard mimetype on unix systems.

> What is to prevent someone from installing text/rtf.xml as well or adding an entry in /usr/share/mime/aliases?  The alias file would seem to be the correct choice.  Who maintains the aliases file? 


Those files are generated, but indeed freedesktop.org.xml could define text/rtf as an alias for application/rtf, for backwards compatibility.
This should be requested on https://bugs.freedesktop.org in the shared-mime-info product, freedesktop.org.xml component.
Comment 8 David Faure 2008-06-11 16:27:15 UTC
I see that https://bugs.freedesktop.org/show_bug.cgi?id=16270 exists now; thanks!
Comment 9 David Faure 2008-11-26 23:38:17 UTC
Fixed upstream.