Bug 26936

Summary: Openjdk Policy applications menu entry is too long
Product: Mageia Reporter: Aurelien Oudelet <ouaurelien>
Component: RPM PackagesAssignee: Nicolas Salguero <nicolas.salguero>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: java-1.8.0-openjdk-1.8.0.252-1.b09.3.mga8.src.rpm CVE:
Status comment:
Attachments: Openjdk Policy menu too large

Description Aurelien Oudelet 2020-07-11 13:34:30 CEST
Description of problem:
Menu for Openjdk Policy is too large as it shows current version in name.
It is not user friendly.

How reproducible: always

Steps to Reproduce:
1. Install with Classic ISO, whatever desktop selected
2. Open Application Menu and see in "Tools" category:

OpenJDK 8 Policy Tool 1.8.0-openjdk-1.8.0.252-1.b09.3.mga8.x64_86 

It comes from /usr/share/applications/java-1.8.0-openjdk-1.8.0.252-1.b09.3.mga8.x86_64-policytool.desktop

Therefore, in Mageia repos, there is only one available Java version.
$ dnf provides java
java-1.8.0-openjdk-1:1.8.0.252-1.b09.3.mga8.x86_64 : OpenJDK Runtime Environment
Dépôt               : @System
Correspondances trouvées dans  :
Provide    : java = 1:1.8.0

java-1.8.0-openjdk-1:1.8.0.252-1.b09.3.mga8.x86_64 : OpenJDK Runtime Environment
Dépôt               : cauldron-x86_64
Correspondances trouvées dans  :
Provide    : java = 1:1.8.0

See attachment below.

Workaround:
Manually Edit Menu and reduce the name.
Comment 1 Aurelien Oudelet 2020-07-11 13:35:09 CEST
Created attachment 11746 [details]
Openjdk Policy menu too large
Jani Välimaa 2020-07-12 15:40:52 CEST

Summary: Openjdk Policy menu too large => Openjdk Policy applications menu entry is too long

Comment 2 Lewis Smith 2020-07-21 12:19:16 CEST
True also for Mageia 7. Presumably the menu caption should not include more than the application name, not the version etc.

Nicolas looks best to assign this to.

Assignee: bugsquad => nicolas.salguero

Comment 3 Nicolas Salguero 2020-07-29 09:53:20 CEST
Hi,

For Cauldron, java-1.8.0-openjdk-1.8.0.262-1.b10.2.mga8 should solve the issue.
For Mageia 7, the fix is committed in SVN.

Best regards,

Nico.
Comment 4 Aurelien Oudelet 2020-07-29 22:00:32 CEST
In Cauldron, fix is here.
At it is cosmetic, and Mageia 8 is around, we can close Resolved Fixed.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 5 Aurelien Oudelet 2020-08-20 12:56:58 CEST
Sadly above problem (cosmetic therefore but annoying) returns with

java-1.8.0-openjdk-1.8.0.272.b02-0.0.ea.3.mga8.x86_64:

/usr/share/applications/java-1.8.0-openjdk-1.8.0.272.b02-0.0.ea.3.mga8.x86_64-policytool.desktop

(from yesterday updates)

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 6 Aurelien Oudelet 2020-11-10 20:44:07 CET
Fixed in M7 and Cauldron

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED