Skip to content

electron-builder-generated desktop files are lacking a Categories= entry #2

Open

Description

@probonopd

The *.desktop file is lacking a Categories= entry.

According to the menu spec,

By including one of the Main Categories in an application's desktop entry file, the application will be ensured that it will show up in a section of the application menu dedicated to this category. If multiple Main Categories are included in a single desktop entry file, the entry may appear more than once in the menu.

Hence, please add at least one of the following in the Categories= key.

Main Category Description Notes
AudioVideo Application for presenting, creating, or processing multimedia (audio/video)
Audio An audio application Desktop entry must include AudioVideo as well
Video A video application Desktop entry must include AudioVideo as well
Development An application for development
Education Educational software
Game A game
Graphics Application for viewing, creating, or processing graphics
Network Network application such as a web browser
Office An office type application
Science Scientific software
Settings Settings applications Entries may appear in a separate menu or as part of a "Control Center"
System System application, "System Tools" such as say a log viewer or network monitor
Utility Small utility application, "Accessories"

In addition, you could specify one or more from the longer list of Additional Categories.

Please test the result with desktop-file-validate and make sure it passes.

electron-builder offers native support for this since v19.22.1.. Please see the category key at https://www.electron.build/configuration/linux-other.

References:

Activity

  1. changed the title [-]First issue found using AppImageHub[/-] [+]electron-builder-generated desktop files are lacking a Categories= entry[/+] on Aug 18, 2017
  2. probonopd commented on Aug 19, 2017

    @probonopd
    MemberAuthor
  3. probonopd commented on Aug 19, 2017

    @probonopd
    MemberAuthor

    https://github.com/PeerioTechnologies/peerio-desktop also suffers from this, but since they have disabled GitHub Issues I have no convenient way to let them know. Upstream not yet notified.

  4. probonopd commented on Aug 19, 2017

    @probonopd
    MemberAuthor

    Looks like we need a bot for remining people to always use the latest electron-builder @develar

  5. develar commented on Aug 19, 2017

    @develar

    Message, that new update is available, disabled on CI server. https://www.npmjs.com/package/update-notifier Is used. Probably makes sense to enable on CI and change level to warn.

  6. probonopd commented on Jul 21, 2018

    @probonopd
    MemberAuthor

    Asked electron-builder to enforce this electron-userland/electron-builder#3149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions