Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8364560

The default value of --linux-menu-group option is invalid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • 17, 21, 25, 26
    • tools
    • None
    • generic
    • linux

      The default value of the --linux-menu-group option is "Unknown". The value of this option is used to set the "Categories" key in a corresponding .desktop file.

      However, "Unknown" is not a valid "Categories" key value.
      The list of valid values is at [1] and [2].

      Validation .desktop files created in jpackage with "desktop-file-validate" command fails:
      ---
      foo.desktop: error: value "Unknown" for key "Categories" in group "Desktop Entry" contains an unregistered value "Unknown"; values extending the format should start with "X-"
      foo.desktop: hint: value "Unknown" for key "Categories" in group "Desktop Entry" does not contain a registered main category; application might only show up in a "catch-all" section of the application menu
      ---

      [1] https://specifications.freedesktop.org/menu-spec/latest/category-registry.html#main-category-registry
      [2] https://specifications.freedesktop.org/menu-spec/latest/additional-category-registry.html

      Need a valid default value for "Categories" key.

            asemenyuk Alexey Semenyuk
            asemenyuk Alexey Semenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: