Add optional validation of the value of the `--linux-menu-group` option using the desktop-file-validate command.
If the command is not available, jpackage doesn't validate the value of the `--linux-menu-group` option. Additionally, this command enhances validation of desktop files created by jpackage in the test code. It turned out that jpackage was producing desktop files that failed validation with some versions of the desktop-file-validate command. It was a minor incompatibility due to missing the trailing semicolon (;) in the value of the `MimeType` and `Categories` entries. Fixed accordingly. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - 8371868: Use desktop-file-validate command to validate the value of "--linux-menu-group" option Changes: https://git.openjdk.org/jdk/pull/32523/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32523&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8371868 Stats: 473 lines in 14 files changed: 445 ins; 12 del; 16 mod Patch: https://git.openjdk.org/jdk/pull/32523.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32523/head:pull/32523 PR: https://git.openjdk.org/jdk/pull/32523
