You are not logged in.

#1 2019-01-24 23:41:50

smokeEveryday
Member
Registered: 2019-01-24
Posts: 1

How to add an application in the cinnamon menu to a specific category

How to add an application in the cinnamon menu to a specific category manually?
I add file ~/.local/share/applications/sublime_text.desktop

[Desktop Entry]
Type=Application
Name=Sublime Text
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text/sublime_text
Icon=cinnamon-panel-launcher
Terminal=false

But in the menu it is not displayed.
I made through the menu editor cinnamon menu item:

cat ~/.local/share/applications/alacarte-made-455e81ce-202e-11e9-991d-94b86dfae763.desktop 
[Desktop Entry]
Name=sd
Exec=/bin/cat
Comment=ww
Terminal=false
Icon=cinnamon-panel-launcher
Type=Application

There is no category here, but why does it appear in the category where I added it? Your documentation does not explain this.

Last edited by smokeEveryday (2019-01-24 23:45:10)

Offline

#2 2019-01-25 03:18:16

dmartins
Member
Registered: 2006-09-23
Posts: 360

Re: How to add an application in the cinnamon menu to a specific category

Desktop entries are part of the freedesktop.org specifications. Categories are covered here. Check appendix A for the standard category names. You could check an existing .desktop file in /usr/share/applications to see what they use as well.

I don't know why the one you created using the GUI shows up in a category even though the desktop file doesn't mention one. It seems like cinnamon is doing something non-standard to achieve this.

Offline

Board footer

Powered by FluxBB