JDK-6957029 : Desktop shortcut not created in Ubuntu in any language other than english
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6u20
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_ubuntu
  • CPU: x86
  • Submitted: 2010-05-28
  • Updated: 2010-06-11
  • Resolved: 2010-06-11
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java -version:
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)


ADDITIONAL OS VERSION INFORMATION :
Ubuntu 10.4 . Desktop Edition

uname -a:
Linux port-vendedor-1 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686 GNU/Linux

EXTRA RELEVANT SYSTEM CONFIGURATION :
Ubuntu isntalled in Portuguese.

A DESCRIPTION OF THE PROBLEM :
Web Start does not create a desktop shortcut in Ubuntu if it was installed in Portuguese since the desktop folder is named "Area de Trabalho" if you choose Portuguese in Ubuntu's language selection screen during installation.

After the application is run through JWS with instructions to automatically create a desktop shortcut, or after opening the Java Cache Viewer and using the button "Install shortcuts to the selected applications", a new folder is created in /home/user/ called desktop. Items that are created by JWS in this folder do not show on the actual desktop which is located at "/home/gsc/����rea de Trabalho".

This problem probably happens in all instances of Ubuntu 10.4 where the desktop folder isn't called "desktop" and in all previous Ubuntu versions that change the desktop folder name depending on language, although I haven't tested either case.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Install Ubuntu 10.4 Desktop Edition and choose Portuguese in the language selection window
Configure any connection to the internet
Run the following commands to install Java SE 6:
    sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
    sudo apt-get update
    sudo apt-get install sun-java6-jre
Launch a Java Web Start application whose jnli file is configured to install a desktop shortcut
Verify that no icon appears on the desktop
Open /home/[current_user]/desktop
Verify that the shortcut is indeed present in this location

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
A shortcut in the desktop to launch the JWS application
ACTUAL -
No shortcut was created on the desktop.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Installing Ubuntu in english.