Bug 956 - Firefox needs a default MIME association for Java Web Start (JNLP)
: Firefox needs a default MIME association for Java Web Start (JNLP)
Status: VERIFIED FIXINSOURCE
Product: opensolaris
software
: unspecified
: ANY/Generic OpenSolaris
: P1 normal with 1 vote (vote)
: in-preview3
Assigned To: David Comay
:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-04-02 08:38 UTC by Peter.Schow
Modified: 2008-11-11 01:59 UTC (History)
9 users (show)

See Also:


Attachments
Proposed patch for the .desktop part of the fix. (1.63 KB, patch)
2008-10-28 12:37 UTC, Rich Burridge
no flags Details | Diff
Better proposed patch for the .desktop part of the fix (1.65 KB, patch)
2008-10-28 13:08 UTC, Rich Burridge
no flags Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description Peter.Schow 2008-04-02 08:38:09 UTC
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
Comment 1 David Comay 2008-04-16 11:49:13 UTC
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.
Comment 2 David Comay 2008-04-16 12:19:06 UTC
Recategorizing...
Comment 3 David Comay 2008-05-12 16:04:17 UTC
*** Bug 1895 has been marked as a duplicate of this bug. ***
Comment 4 Edward OCallaghan 2008-06-24 01:27:26 UTC
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.
Comment 5 Glynn Foster 2008-08-12 17:10:46 UTC
Alfred/Ginn: can you look at this please?
Comment 6 Ginn Chen 2008-08-13 00:50:29 UTC
(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.
Comment 7 Ginn Chen 2008-10-06 06:15:18 UTC
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.
Comment 8 David Comay 2008-10-06 14:27:25 UTC
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.
Comment 9 David Comay 2008-10-06 14:28:14 UTC
Setting the Assignee.
Comment 10 Rich Burridge 2008-10-28 12:37:23 UTC
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.
Comment 11 Rich Burridge 2008-10-28 13:08:53 UTC
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).
Comment 12 Rich Burridge 2008-10-29 09:50:43 UTC
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.
Comment 13 Rich Burridge 2008-10-29 09:51:45 UTC
Fixed in changeset 25d00c5514ac1add90fb3b763d16ee7c484cc640
Comment 14 Qinghua Cheng 2008-11-11 01:59:20 UTC
Verified on rc1b build.