JDK-6732453 : GNOME: javaws use "Desktop" directory for shortcuts, not the locale one "Escritorio"
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6u10,6u20
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux,linux_ubuntu
  • CPU: x86
  • Submitted: 2008-07-31
  • Updated: 2012-06-21
  • Resolved: 2012-06-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u6Resolved
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK Server VM (build 1.6.0-b09, mixed mode)

also

java version "1.6.0_10-beta"
Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b25)
Java HotSpot(TM) Server VM (build 11.0-b12, mixed mode)

also

java version "1.6.0_10-rc"
Java(TM) SE Runtime Environment (build 1.6.0_10-rc-b28)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Linux epi 2.6.24-19-generic #1 SMP Fri Jul 11 23:41:49 UTC 2008 i686 GNU/Linux


EXTRA RELEVANT SYSTEM CONFIGURATION :
Gnome Desktop, locale es_ES, desktop directory "Escritorio"

file "$HOME/.config/user-dirs.dirs" contains the following line for desktop

XDG_DESKTOP_DIR="$HOME/Escritorio"


A DESCRIPTION OF THE PROBLEM :
javaws use "Desktop" directory for shortcuts even when the desktop directory is "Escritorio" (Spanish locale).

I've tried version 1.6.0-b09, 1.6.0_10-beta-b25 and 1.6.0_10-rc-b28.

If my desktop directory is "/home/user/Escritorio" (es_ES) then javaws fails to create a shortcut and a menu item.

If I create the directory "/home/user/Desktop" then the shortcut is created in this directory, so I have to move it to "/home/user/Escritorio" the correct one. The menu item is not created.

the file .config/user-dirs.dirs contains the following line for desktop

XDG_DESKTOP_DIR="$HOME/Escritorio"

OS: ubuntu 8.04 updated


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just exec javaws with any .jnlp application that should create a desktop shortcut.

The Desktop directory must be localized ej: "/home/user/Escritorio"


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Creation of shortcuts and menu items as javaws specification tells.

ACTUAL -
javaws always use "/home/user/Desktop" directory for shortcuts.


ERROR MESSAGES/STACK TRACES THAT OCCUR :
no errors.


REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
If I create the directory "/home/user/Desktop" then the shortcut is created in this directory, so I have to move it to "/home/user/Escritorio" the correct one. The menu item is not created.

Comments
EVALUATION With fix for 6546288 we are now reading Desktop location from the same env variable. Verified that changing loction of desktop folder in the "$HOME/.config/user-dirs.dirs" causes shortcuts to be placed in different folder.
21-06-2012

EVALUATION It seems to be an i18n problem.
01-08-2008