Bug 1395536

Summary: OpenJDK policytool .desktop file name contains full version string
Product: [Fedora] Fedora Reporter: Sebastian Keller <sebastian-keller>
Component: java-1.8.0-openjdkAssignee: Deepak Bhole <dbhole>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ahughes, dbhole, jerboaa, jvanek, msrb, omajid
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-16 08:44:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sebastian Keller 2016-11-16 06:16:28 UTC
The file name of the .desktop file for the OpenJDK policytool contains the full package version string:

java-1.8.0-openjdk-1.8.0.111-3.b16.fc26.x86_64-policytool.desktop

This means that there is no good way of hiding this entry from the gnome-shell applications list. Hiding entries is usually done by creating a modified copy of that file in ~/.local/share/applications/ with the same file name as the original and changing the "NoDisplay" value. But since the file name changes with every update of the openjdk package, this would have to repeated every time the package is updated.

Also the version string is exposed in the user visible "Name" entry of that file and for some reason it even made it into the "Comment" entry.

Comment 1 Andrew John Hughes 2016-11-16 07:07:33 UTC
This is by design. It allows multiple versions of the JDK to be installed side-by-side.

Comment 2 jiri vanek 2016-11-16 08:44:47 UTC
Please search the bugzilla. There is about 10 bugs on this topic with various Questions and Answers.