> Add optional validation of the value of the `--linux-menu-group` option and > desktop entry files (`*.desktop`) using the desktop-file-validate command. > > If the command is not available, jpackage doesn't validate the value of the > `--linux-menu-group` option and desktop entry files it creates. > > 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).
Alexey Semenyuk has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains seven additional commits since the last revision: - Fix merge error - Merge branch 'master' into JDK-8371868 - Improve jpackage verbose-output configuration in tests to support environments where output is disabled. - Validate desktop entry files created by jpackage with desktop-file-validate command. - ErrorTest: support tokens in error messages - Remove redundant "return" statements. - 8371868: Use desktop-file-validate command to validate the value of "--linux-menu-group" option ------------- Changes: - all: https://git.openjdk.org/jdk/pull/32523/files - new: https://git.openjdk.org/jdk/pull/32523/files/a8c49a5d..854677f9 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=32523&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=32523&range=01-02 Stats: 13517 lines in 591 files changed: 6153 ins; 3757 del; 3607 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
