JDK-6182294 : j2se Control Panel desktop integration improvements
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: cinnabar,5.0u1,6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,linux,solaris_10
  • CPU: generic,x86
  • Submitted: 2004-10-21
  • Updated: 2013-06-04
  • Resolved: 2006-05-31
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 6
6 b86Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
CR 5066525 was implemented as requested by JDS. However, in the process
of evaluating the CR, several descrepancies between the request and common
practace were discovered.  While 5066525 was "Solaris only", these
descrepencies tended to be common to both Solaris and Linux.  5066525 was
used to bring Solaris to a common point with the pre-existing Linux
implementation.  This CR will be used to bring both to a higher level of
integration.  See Suggested Fix for details.
###@###.### 10/21/04 00:10 GMT

Comments
SUGGESTED FIX Heh Calum! Two points: This is Sun software. If its not documented, it doesn't exist. Code doesn't count - that is *today's* implementation. Related to this point is that older versions of Gnome (which had a different code implementation) don't work without the suffix. Remember, this needs to work on a lot of old Gnome versions. This doesn't matter because the only icons referenced are icons we deliver. Anybody planning on creating icons for Java for other themes had best contact Sun Legal for permission first (its a branding issue). (To be fair, this issue may become real should distros start distributing our Java SE. We can only hope we get this problem.)
10-05-2006

SUGGESTED FIX Leaving the suffix off the icon may be undocumented, but nonetheless it's the only way to do it in GNOME that will cause icons to be themed correctly in the presence of alternative icon formats (which we're now starting to see more frequently). One could argue anyway that the lookup algorithm is "documented" by the code in the GNOME that implements it anyway; see gnome_desktop_find_icon() in http://cvs.gnome.org/viewcvs/gnome-desktop/libgnome-desktop/gnome-desktop-item.c?rev=1.154&view=markup. If this changes in future, we'll have to fix every app's .desktop file. I suspect we'd rather have icon theming that works properly for every app today, than have one app out of dozens that we might not have to fix tomorrow.
10-05-2006

SUGGESTED FIX In the comment above it suggests leaving the suffix off of the icon. Although this works, it appears to be an undocumented, and hence unstable feature which should be avoided.
26-04-2006

EVALUATION The following Gnome/Desktop integration files should be integrated on all Solaris and Linux system installations: 1) /usr/share/applications: sun_java.desktop for jcontrol/Control Panel (gross legacy name) sun-java.desktop non-displaying handler for x-java-archive mimetype sun-javaws.desktop non-displaying handler for x-java-jnlp-file mimetype 2) /usr/share/icons/hicolor (also HighContast, HighContrastInverse and LowContrast both 16x16 and 48x48 versions) apps/sun-control.png apps/sun-java.png apps/sun-javaws.png These correspond to the above desktop entries. Currently these are also the same icon. mimetypes/gnome-mime-application-x-java-archive.png mimetypes/gnome-mime-application-x-java-jnlp-file.png mimetypes/gnome-mime-text-x-java.png There are bugs in the freedesktop.org mime database for x-java-archive and x-java-jnlp-file (these are being addressed upstream). In the meantime, if the /usr/share/mime database exists, patch it by installing the following in /usr/share/mime/packages and updating the database: x-java-archive.xml x-java-jnlp-file.xml Support Legacy installations by installing the following if the containing directories exist. For the short term, this means almost always, because somebody is installing there, but the conditional installation means that we won't be the last nasty guy installing in those directories. 1) /usr/share/control-panel-2.0 (desktop files) 2) /usr/share/application-registry / mime-info (legacy mime recognition) Solaris 9 w/ Gnome 2.0 and some Linux distribution (notably SuSE 9) put Gnome in funny places. Those installations have slightly altered paths.
26-04-2006

SUGGESTED FIX First, note that its unfortunate that the desktop file is named sun_java.desktop. sun-java.desktop would be more conventional, but changing at this time would cause serious synchronization problems between releases. We're stuck. Live with it. The Icon file is named sun_java.png. This is also unfortunate, not only because its unconventional, but because we are also delivering a set of icons named sun-java.png. This is just too confusing. The sun_java icon set will be renamed sun-java-cp (cp for ControlPanel). The renaming of the icons should not cause syncronization problems. At worse, we leave an unused icon or two laying around. There are several enhancements to be made: 1)The sun_java.desktop file should contain only the file names for the Icon and Exec fields (with the files being discovered via path search). Note that the suffix (.png) should be left off of the Icon. Exec=ControlPanel Icon=sun-java-cp Note that the above is for the Solaris implementation. Since there is no default java on Linux (currently), there is no ControlPanel in the default path. Hence, Linux must maintain the hardwired, absolute path for Exec as it currently does. The path can be removed from the Icon on both systems. 2)A set of better icons are being produced for the sun-java-cp family. They will be 48x48 in hicolor, HighContrast, LowContrast and HighContrastInverse. These will be installed in /usr/share/icons/<type>/48x48/apps 3)A set of 16x16 icons are also being developed for the sun-java and the sun-java-cp icon families. If these become available (they might not), these will be installed in /usr/shave/icons/<type>/16x16/apps 4)The sources for the icons in the j2se distribution may change to be more regular. They are currently dispersed. (TBD) Gnome guys add more here.... ###@###.### 10/21/04 00:28 GMT ###@###.### 10/21/04 00:30 GMT ============================================================================== Updating with additional enhancement: For Linux sun_java.desktop should be installed to /usr/share/control-center-2.0/capplets and not /usr/share/applications (as currently is the case). Note: On Solaris sun_java.desktop is installed to the correct location (/usr/share/control-center-2.0/capplets) ###@###.### 11/4/04 09:40 GMT ###@###.### 11/4/04 18:26 GMT
21-10-2004