Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 158375

Summary: Clean up desktop menu entries of slotted Java control panel apps
Product: Gentoo Linux Reporter: Alex Tarkovsky <alextarkovsky>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED DUPLICATE    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alex Tarkovsky 2006-12-17 07:22:52 UTC
Sun JREs and JDKs are slotted, resulting in one "Java Control Panel" entry in the desktop
menu per installed version. This can lead to some confusing or fugly desktop menus.

Resolving
this mess isn't so simple since there are three pieces of information that must be presented
through the desktop menu if the user can be expected to accurately distinguish between
the entries: 1) the slot version; 2) whether the entry is for a JRE or a JDK; 3) the vendor.

-------------

1)
Slot

Each entry is currently appended with its corresponding slot version. On my system
I have the Sun JDKs installed for slots 1.4, 1.5, and 1.6, giving me the following entries
in Gnome's System --> Preferences menu:

    Java Control Panel 1.4
    Java Control Panel
1.5
    Java Control Panel (sun-jdk-1.6)

2) JRE|JDK

JRE and JDK also need to be specified.
Current Sun JRE ebuilds avoid creating a desktop menu entry for the control panel due
to name clashes with that of the JDKs. Implementing this change would yield something
like:

    Java Control Panel JDK 1.4
    Java Control Panel JRE 1.4

3) Vendor

IBM and
other JRE/JDK providers may in the future distribute their own control panel applications,
necessitating the addition of the vendor name to the desktop menu entries. Example:


   IBM JRE Java Control Panel 1.5
    Sun JDK Java Control Panel 1.4
    Sun JRE Java
Control Panel 1.4

-------------

Now the entries have the necessary information to distinguish
themselves, but go against widely-recognized desktop human interface guidelines [1] --
each entry is slightly overloaded with information (and don't forget fugly!).

The proposed
HIG-friendly solution, also compliant with f.d.o guidelines [2], is to create a submenu
for Java control panel entries. For example:

    Java Control Panel -->
        IBM JRE
1.5
        Sun JDK 1.4
        Sun JRE 1.4

To simplify things for ebuild maintainers
this desktop menu entry handling can be implemented in an eclass.

[1] http://developer.gnome.org/projects/gup/hig/2.0/desktop-integration.html#menu-item-names
[2]
http://standards.freedesktop.org/menu-spec/latest/
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-17 07:25:01 UTC

*** This bug has been marked as a duplicate of 158374 ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-12-17 07:25:14 UTC
Dupe.