On Thu, 10 Jul 2008 12:24:43 +0200, Matthias Klose wrote: > what does happen with the patch applied, if you double-click .jnlp > files?
They fail to open properly. The correct fix then is probably a simple wrapper script. If it is passed any arguments, pass them along to javaws, otherwise pass "-viewer". Then the .desktop file can point to that script. Here's an example of such a script. ====== #!/bin/sh if [ "$#" -eq 0 ]; then /usr/lib/jvm/java-6-sun-1.6.0.10/bin/javaws -viewer else /usr/lib/jvm/java-6-sun-1.6.0.10/bin/javaws "$@" fi ====== I tested and confirmed that it fixes the problem. The Exec line in the desktop file I tested is: Exec=/path/to/script %u Also, is there a reason that sun-java6-jre doesn't provide /usr/bin/javaws? cacao-oj6-jre and openjdk-6-jre do. Perhaps this script could be installed as /usr/bin/javaws. If so, perhaps it should be subject to the alternatives system like /usr/bin/java. Richard
signature.asc
Description: This is a digitally signed message part