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:
Code:
grep -RI '\*.jar' /usr/share/mime
/usr/share/mime/globs:application/x-java-archive:*.jar
/usr/share/mime/globs:application/java-archive:*.jar
/usr/share/mime/globs:application/java-archive:*.jar
/usr/share/mime/packages/freedesktop.org.xml: <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"/>
/usr/share/mime/globs2:50:application/x-java-archive:*.jar
/usr/share/mime/globs2:50:application/java-archive:*.jar
/usr/share/mime/globs2:50:application/java-archive:*.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).