Page 1 of 1

JWS desktop icon not showing up on linux

Posted: Wed Feb 08, 2012 9:26 pm
by thu
I have modified the oxygen.jnlp to include:

<information>
...

<offline-allowed/>
<icon href="OxygenJWS128.png" kind="splash"/>
<icon href="OxygenJWS128.png" kind="default"/>
<shortcut online="false">
<desktop/>
<menu submenu="oXygen">
<menu submenu="oXygen Editor"/>
</menu>
</shortcut>
</information>

I have confirmed that in deployer.jar APPLICATION.JNLP also contains the above entry. On windows and on mac machines, I get prompted for creation of a desktop icon and one appears on the desktop as expected.

However if I launch the install on linux (ubuntu, kubuntu, and mint) I do not get a prompt and no desktop icon is created. I tried making sure that I am using the java sun JDK, I also changed the title to a shorter title, but none of it seems to work.

Has anyone encountered this issue on Linux? This is quite problematic for Linux users if the are not familiar with JWS. Once they close out of the client, they have no way of knowing where oXygen is installed and how to launch it again.

Any direction would be very helpful, thanks.

Re: JWS desktop icon not showing up on linux

Posted: Wed Feb 08, 2012 10:36 pm
by thu
One last thing, I keep on reading that there should be an oxygen.sh file that launches oxygen in the install folder after the JWS installer finishes with the install. I have checked my ~/http___* folder and I can't find oxygen.sh anywhere. I only see .exe files like msxsl.exe, nxslt.exe, etc... Is there an oxygen.sh startup script? If so at least I can then manually create a shortcut on my linux desktop.

Re: JWS desktop icon not showing up on linux

Posted: Thu Feb 09, 2012 7:06 pm
by adrian
Hello,

Note that the .sh only applies to the archived(zip, tar.gz) distributions of Oxygen. For the JWS distribution, the JNLP file is the actual launcher.
To run the jnlp you have to execute:

Code: Select all

javaws oxygen.jnlp
What Java Runtime Environment(JRE) do you have on the Linux machines(OpenJDK, Java SE). The JNLP is subject to the interpretation of the JRE. It's possible that the JRE you currently have does not support that JNLP feature(desktop shortcut).

Regards,
Adrian

Re: JWS desktop icon not showing up on linux

Posted: Sun Feb 19, 2012 9:00 pm
by dcramer
Not sure which Thu was testing with, but I can confirm that the desktop icon is not created with Java SE on Ubuntu:

Code: Select all

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
If I manually create a .desktop file and put it in ~/.local/share/applications, then it appears in the usual places:

Code: Select all

#!/usr/bin/env xdg-open

[Desktop Entry]
Type=Application
Name=Oxygen XML Author via JWS
Exec=javaws "/home/dcramer/.local/share/applications/authorjws/author.jnlp"
Icon=/home/dcramer/.local/share/applications/authorjws/Author128.png
Categories=Application;
Terminal=false
Name[en_US]=JWS Oxygen Author 13.2
Thanks,
David