-   Linux - Software (
-   -   KDE jar MIME is application/zip and not application/java-archive in Ubuntu Intrepid? (

arobinson74 11-18-2008 04:08 PM

KDE jar MIME is application/zip and not application/java-archive in Ubuntu Intrepid?
I am trying to find out why KDE has the incorrect MIME type for *.jar files.

gnome apps (like nautilus) and xfce4 apps (like thunar) correctly interpret the jar files as application/java-archive. However, KDE thinks that jar files are application/zip.

The configuration all looks correct:

grep -RI '\*.jar' /usr/share/mime
/usr/share/mime/packages/ <glob pattern="*.jar"/>
/usr/share/mime/packages/sun-java6-jre.xml: <glob pattern="*.jar"/>
/usr/share/mime/packages/sun-java5-jre.xml: <glob pattern="*.jar"/>

I have looked in all the mime directories that I know of, including my ~/.kde directory and the KDE mime type configuration, and nowhere that I can tell is jar ever associated with application/zip.

Since xfce and Gnome are correct, it leads me to believe the configuration is in a KDE specific directory (like ~/.kde/share/mimelnk/), but I have not found anything. Even the magic files don't seem to be the problem as they use application/x-zip not application/zip.

Where could KDE possibly be pulling the zip association from?

I have tested this on konqueror, krusader & dolphin, all show the application/zip as the mime type (which by the way has only *.zip and *.ZIP listed as glob patterns).

dfaure 09-17-2009 08:06 AM

known bug
I just saw this reported to the kde bugzilla today, see for more information.

arobinson74 09-18-2009 12:40 PM

Thanks for the follow up. That is actually a response from the bug I ended up filing for this problem against Ubuntu. It took a long time for it to be confirmed and then moved upstream. The ironic thing is that I stopped using KDE applications altogether due to problems running KDE4 apps in Gnome in Ubuntu Jaunty (painting issues mostly) so any fix won't matter much to me, but at least other java users that like KDE should be helped by it.

All times are GMT -5. The time now is 09:19 AM.