LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-18-2008, 04:08 PM   #1
arobinson74
Member
 
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174

Rep: Reputation: 30
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:
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).
 
Old 09-17-2009, 08:06 AM   #2
dfaure
LQ Newbie
 
Registered: Apr 2006
Location: France
Posts: 6

Rep: Reputation: 0
known bug

I just saw this reported to the kde bugzilla today, see https://bugs.kde.org/show_bug.cgi?id=207517 for more information.
 
Old 09-18-2009, 12:40 PM   #3
arobinson74
Member
 
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i execute a jar (java application) in linux amolgupta Linux - Software 2 07-20-2006 06:55 AM
mime type application/octet-stream SLP Suse/Novell 1 03-20-2006 06:29 PM
KDE error 'Could not find mime type application/octet-stream' true_atlantis Linux - Software 0 01-04-2006 08:29 PM
Permission Denied while installing new jar library for my new application lavinal Linux - Software 1 09-02-2004 05:47 AM
Java/KDE Application Framework Problem in KDevelop 3.0 corpus_delicti Linux - Software 1 08-29-2004 01:53 PM


All times are GMT -5. The time now is 07:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration