question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Linux] desktop file is lacking a Categories= entry

See original GitHub issue

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

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.

Reference: https://github.com/AppImage/AppImageHub/issues/2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

Categories= key missing in Linux desktop file · Issue #1914
The desktop file is lacking a Categories= entry in the *.desktop file. According to the menu spec,. By including one of the Main...
Read more >
When creating a .desktop file, what are valid categories?
I added the category "Games" and it gave me an error when running desktop-file-validate, and won't show in the Games lens. – cosmoflop12....
Read more >
Desktop entries - ArchWiki - Arch Linux
Desktop entries for applications, or .desktop files, are generally a combination of meta information resources and a shortcut of an application.
Read more >
Guide to Desktop Entry Files in Linux
Desktop entry files are a standard way for creating and ordering graphical user interface (GUI) shortcuts. Most major Linux desktop ...
Read more >
Why are my application.desktop files not showing up in ...
If the file is not present or if it is not executable, the entry may be ignored (not be used in menus, for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found