Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] desktop file is lacking a Categories= entry #13

Open
probonopd opened this issue Aug 18, 2017 · 7 comments
Open

[Linux] desktop file is lacking a Categories= entry #13

probonopd opened this issue Aug 18, 2017 · 7 comments

Comments

@probonopd
Copy link

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: AppImage/appimage.github.io#2

@probonopd
Copy link
Author

Latest release is still suffering from this. Should be easy to fix.

@cfry
Copy link
Owner

cfry commented Sep 5, 2017 via email

@probonopd
Copy link
Author

probonopd commented Sep 5, 2017

Thanks @cfry. The specification is at
https://standards.freedesktop.org/menu-spec/latest/apa.html

Did you test your desktop fie using desktop-file-validate?

The following passes validation:

[Desktop Entry]
Type=Application
Name=Dexter Development Environment
Comment=Develop and run software on the Dexter 5 axis robot arm
Exec=dexter_dev_env
Categories=Education;Robotics

@cfry
Copy link
Owner

cfry commented Sep 6, 2017 via email

@probonopd
Copy link
Author

Thanks cfry. This is not a GitHub requirement but a Desktop Linux requirement. electron-builder allows you to add a category, and it will write the desktop file for you. Please see the category key at https://www.electron.build/configuration/linux-other

@cfry
Copy link
Owner

cfry commented Sep 6, 2017 via email

@probonopd
Copy link
Author

I think so, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants