Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

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

Closed
probonopd opened this issue Aug 18, 2017 · 8 comments
Closed

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

probonopd opened this issue Aug 18, 2017 · 8 comments
Labels

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

@jwheare
Copy link
Member

jwheare commented Sep 28, 2017

This should be fixed in a2a70eb by adding IRCClient from Additional Categories. Is a main category still needed or is the Network type picked up? I couldn't see how to specify multiple categories.

@probonopd
Copy link
Author

In XDG desktop files, like this: Categories=Category1;Category2; but I don't know how electron-builder handles this. In XDG desktop files, the first category should be one of the main categories. Please don't forget to run your desktop file through desktop-file-validate to see if it passes.

If someone could be so nice to let me know once a new version is available on GitHub Releases, I can run it through the test again.

@jwheare
Copy link
Member

jwheare commented Sep 29, 2017

Alright, this seems to work: 7d13b7d

I downloaded the CI built appimage and manually tested it with desktop-file-validate on a mac (via homebrew). Any idea if there's a simple way to have this validation run automatically on travis ci electron-builder runs?

@probonopd
Copy link
Author

Thank you very much.

Maybe it would be possible to do on Travis CI what you did on your local machine? But it may be overkill, since as long as the file is not changed it should continue to work.

@jwheare
Copy link
Member

jwheare commented Sep 30, 2017

Well, it was a bit annoying. I had to find the appimage (which will change name on different release numbers), rename to .img, mount it, dig down into to find the file, then run it. So it’s possible, but as you say, probably overkill for me to setup in a manual Travis routine.

I’ll see if @develar would consider validating it automatically in the build process, maybe only if the validate-desktop-file program exists.

@develar
Copy link

develar commented Sep 30, 2017

electron-userland/electron-builder#2136

@jwheare
Copy link
Member

jwheare commented Oct 2, 2017

Fixed in the latest release: https://github.com/irccloud/irccloud-desktop/releases/tag/v0.4.0

@probonopd
Copy link
Author

Thank you, works for me.

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

No branches or pull requests

3 participants