Add a category to Cinnamon menu

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon

Add a category to Cinnamon menu

Postby JohannesBrahms on Thu Feb 07, 2013 10:20 am

I am interested to write a file to add a new category to Cinnamon menu. In Gnome, for example, if I add the following file /etc/xdg/menus/applications-gnome-merged/wine.menu:
Code: Select all
<!DOCTYPE Menu
  PUBLIC '-//freedesktop//DTD Menu 1.0//EN'
  'http://standards.freedesktop.org/menu-spec/menu-1.0.dtd'>
<Menu>
   <Name>Applications</Name>
   <Menu>
      <Name>wine-wine</Name>
      <Directory>Wine.directory</Directory>
      <Include>
         <Category>X-Wine</Category>
      </Include>
   </Menu>
</Menu>

and the file /usr/share/desktop-directories/Wine.directory
Code: Select all
[Desktop Entry]
Encoding=UTF-8
Type=Directory
Name=Wine
Icon=wine
, all the desktop files with the line
Code: Select all
Categories=X-Wine;

will be added as item to Wine category, and not to to "Others".
If I want add a personal category to existing categories (AudioVideo, System, Development, Office, Graphics...), there is a way? Cinnamon ignore all my settings, and add the programs to "Others" is the category is not one of the default ones.
N.B. I want add a personal category, not Wine.
N.B.2 I search for add systems files to the default ones, not to change them. So, if tomorrow I want add another category, I will add another files, without change the old ones.
Thank you

Marco
JohannesBrahms
Level 1
Level 1
 
Posts: 2
Joined: Tue Feb 05, 2013 8:09 am

Linux Mint is funded by ads and donations.
 

Re: Add a category to Cinnamon menu

Postby kc1di on Thu Feb 07, 2013 2:26 pm

if your running cinnamon 1.6 it's as simple as right clicking the menu button and selecting edit menu then add new menu works great.
John 3:16
Morse code an Early
Digital Mode
Registered Linux User #462608
Image
User avatar
kc1di
Level 6
Level 6
 
Posts: 1472
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA


Return to Cinnamon

Who is online

Users browsing this forum: Dirkoir, sprintcowboy and 4 guests