Bug 1196819

Summary: openjdk's jconsole and policytool desktop files have annoyingly long Name tags
Product: [Fedora] Fedora Reporter: Rémi Verschelde <rverschelde>
Component: java-1.8.0-openjdkAssignee: Deepak Bhole <dbhole>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ahughes, dbhole, jerboaa, jvanek, omajid
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-27 09:01:20 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:
Embargoed:
Attachments:
Description Flags
jconsole and policytool desktop entries as they appear in KDE's menu (classical style)
none
[Patch] Drop detailed versioning from Name fields in the desktop template none

Description Rémi Verschelde 2015-02-26 19:53:50 UTC
Created attachment 995743 [details]
jconsole and policytool desktop entries as they appear in KDE's menu (classical style)

As seen in Fedora Rawhide (and in Mageia, which I'm using and syncs its java-1.8.0-openjdk package from Fedora), openjdk's jconsole and policytool desktop files have very long Name tags since the package %version, %release and %arch are added to the Name tag.
The values are added in this part of the spec file: http://pkgs.fedoraproject.org/cgit/java-1.8.0-openjdk.git/tree/java-1.8.0-openjdk.spec#n1053

I don't know why it is necessary to specify those values, but maybe they could get added to the Comment field but not in the Name field, preventing it from being as long as e.g. "Name=OpenJDK 8 Monitoring & Management Console 1.8.0.40-5.b25.1.mga5.x86_64"

The attached screenshot shows the "annoyance" I'm talking about (it's but a cosmetic issue, but unless the version is mandatory in the Name field, it would be nice to see it shortened).

Comment 1 Rémi Verschelde 2015-02-26 20:02:48 UTC
Created attachment 995745 [details]
[Patch] Drop detailed versioning from Name fields in the desktop template

Here is a proposed patch.

Comment 2 Omair Majid 2015-02-26 20:18:11 UTC
Looks like a duplicate of bug 1000212

Comment 3 Rémi Verschelde 2015-02-26 20:21:54 UTC
(In reply to Omair Majid from comment #2)
> Looks like a duplicate of bug 1000212

Indeed, I had searched the database for "openjdk jconsole", but this one did not show up, I guess it wasn't searching in the comments.

I'll let you handle marking it as a dup though, I'm not familiar with Fedora's bugzilla workflow, and I see that the two bugs target different products and releases (bug 1000212 probably needs to be updated to point to openjdk 1.8.0 and Rawhide).

Comment 4 jiri vanek 2015-02-27 09:01:20 UTC

*** This bug has been marked as a duplicate of bug 1000212 ***