AppImage / AppImage/appimage.github.io

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

Offen
#2 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Shell
Sterne
376
Forks
773
Ø Merge
4 T. 10 Std.
Gemergte PRs (30 T.)
8

Beschreibung

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

According to the [menu spec](https://standards.freedesktop.org/menu-spec/latest/apa.html),

> 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](https://standards.freedesktop.org/menu-spec/latest/apas02.html).

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

__electron-builder offers native support for this since [v19.22.1](https://github.com/electron-userland/electron-builder/releases/tag/v19.22.1).__. Please see the `category` key at https://www.electron.build/configuration/linux-other.

References:
* https://github.com/AppImage/appimage.github.io/issues/2

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Ermittle, wo das Projekt *.desktop-Dateien verarbeitet oder erzeugt und wie die electron-builder-Konfiguration bereitgestellt wird. Füge über die Kategorieeinstellung einen passenden Categories=-Eintrag hinzu und validiere anschließend die erzeugte Desktop-Datei mit desktop-file-validate; abgeschlossen ist die Aufgabe, wenn die Validierung erfolgreich ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Bereich
desktop-dev
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.