Bugzilla – Bug 956
Firefox needs a default MIME association for Java Web Start (JNLP)
Last modified: 2008-11-11 01:59:20 UTC
You need to log in before you can comment on or make changes to this bug.
Firefox should have a default MIME association for JNLP files (.jnlp, application/x-java-jnlp-file). Currently, upon firefox detection of a JNLP downaload, a popup appears, asking the user what to. /usr/java/jre/bin/javaws is the appropriate executuable to associate
I had originally thought this could be addressed by delivering correct versions of /etc/mailcap and /etc/mime.types but that's not going to work. Recategorizing back to the desktop component.
Recategorizing...
*** Bug 1895 has been marked as a duplicate of this bug. ***
Bumping priority, this hinders usability of the OpenSolaris Desktop experience. This is trivial and should have been fixed by now, Thus, I am looking into taking care of it myself.
Alfred/Ginn: can you look at this please?
(In reply to comment #1) > I had originally thought this could be addressed by delivering correct versions > of /etc/mailcap and /etc/mime.types but that's not going to work. > Recategorizing back to the desktop component. It works for me. I have one line in /etc/mime.types type=application/x-java-jnlp-file desc="Java Web Start" exts="jnlp" and one line in /etc/mailcap application/x-java-jnlp-file; /usr/bin/javaws %s BTW: For nautilus, the default helper application for jnlp is Firefox, it's wrong. If nautilus, or say GNOME VFS, fixes it, firefox doesn't need /etc/mime.types and /etc/mailcap.
I think the problem is GNOME doesn't find sun-javaws.desktop. If I do pfexec cp /usr/jdk/instances/jdk1.6.0/jre/lib/desktop/applications/*.desktop /usr/share/applications/ This bug is gone. On Nevada snv_99, I have these files in /usr/share/applications/ So it might be a bug in installation of java IPS package.
This may be one of the many file operations done by one of the Java postinstall scripts. I'll grab this bug and work on addressing it. Thanks for the evaluation, Ginn.
Setting the Assignee.
Created an attachment (id=670) [details] Proposed patch for the .desktop part of the fix. This bug will be fixed in conjunction with bug #1225. That bug will contain the fix for creating /etc/mailcap and /etc/mime.types with the appropriate Java Web Start lines via the SUNWfixes package.
Created an attachment (id=671) [details] Better proposed patch for the .desktop part of the fix Should have been using "add link" instead of "chattr" (thanks Danek).
Fix generated, webrev created and copied to cr.opensolaris.org and request for review posted. See: http://mail.opensolaris.org/pipermail/pkg-discuss/2008-October/007912.html Changing status to FIXINPROGRESS.
Fixed in changeset 25d00c5514ac1add90fb3b763d16ee7c484cc640
Verified on rc1b build.