[Bug 309778] Re: KDE always associates *.jar with the zip mime type

Harald Sitter apachelogger at ubuntu.com
Tue Sep 15 14:55:49 UTC 2009


sun-java6-jre: /usr/share/mime/packages/sun-java6-jre.xml
this file is at fault.

Quoting:
	<mime-type type="application/java-archive">
		<comment>Java Archive</comment>
		<glob pattern="*.jar"/>
	</mime-type>

Since this overrides the default fdo xml it decreases the hit accuracy
(thus we get 40 in kmimetypefinder...) only the file extension matches
up, while everything else indicates zip, so result is zip, since a file
extension can be wrong at times.

How to proof:
- remove above quoted parts from the affected file
- sudo update-mime-database /usr/share/mime
- kbuildsycoca4
- kmimetypefinder jNetTool-0.4.0.jar 
application/x-java-archive
(accuracy 100)


** Changed in: kdebase-runtime (Ubuntu)
       Status: Confirmed => Invalid

** Package changed: kdebase-runtime (Ubuntu) => sun-java6 (Ubuntu)

** Changed in: sun-java6 (Ubuntu)
       Status: Invalid => Confirmed

-- 
KDE always associates *.jar with the zip mime type
https://bugs.launchpad.net/bugs/309778
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdebase-runtime in ubuntu.




More information about the kubuntu-bugs mailing list