Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#22509 - [jre] Clicking a .jnlp file does not launch that file but launch javaws -viewer instead

Attached to Project: Community Packages
Opened by solsTiCe (zebul666) - Wednesday, 19 January 2011, 15:07 GMT
Last edited by Thomas Dziedzic (tomd123) - Thursday, 20 January 2011, 14:01 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Thomas Dziedzic (tomd123)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When I click in the menu entry of java web start it starts the cache viewer (by calling javaws -viewer)

but it does the same when I click (the desktop does not matter) on a .jnlp file instead of launching the file with javaws. One has to use the CLI to launch a .jnlp

I suggest to use a wrapper to fix that bug.
Change java-web-start.desktop file to use that wrapper i.e.
Exec=/opt/java/jre/bin/javaws-launcher %f

and the wrapper javaws-launcher being:

#!/bin/bash
if [ -z "$@" ]; then
exec javaws -viewer
else
exec javaws "$@"
fi
This task depends upon

Closed by  Thomas Dziedzic (tomd123)
Thursday, 20 January 2011, 14:01 GMT
Reason for closing:  Implemented
Additional comments about closing:  pkgrel 3
Comment by Thomas Dziedzic (tomd123) - Wednesday, 19 January 2011, 20:27 GMT
This seems like a good idea, and a reasonable request.
Although I don't use a mouse to launch, I can see how this could be desired.

I will implement this whenever I have time, and will ask you to test it.
Comment by Thomas Dziedzic (tomd123) - Wednesday, 19 January 2011, 20:38 GMT
Note to self, use #!/bin/sh cause ppl will complain about missing csh,zsh,... scripts
Comment by Thomas Dziedzic (tomd123) - Thursday, 20 January 2011, 07:04 GMT
I have implemented this in pkgrel 3, can you please test the pkgbuilds located here http://pkgbuild.com/~td123/
Comment by solsTiCe (zebul666) - Thursday, 20 January 2011, 10:43 GMT
I have installed the package. yes. it works.

Loading...