Adding Menu Entries in FC2
From K12LTSP Wiki
This is a quick walkthrough on how to add Menu Entries to FC2.
It appears FC2 was in the process of migrating the menu structure to the standards from http://www.freedesktop.org , hence why noone could figure out where to edit the menus.
I got my information from this message on the Fedora List:
http://www.redhat.com/archives/fedora-list/2004-October/msg03516.html
- First, create your .directory file(s) in /usr/share/desktop-directories/
/usr/share/desktop-directories/hhprep.directory
<verbatim>
Desktop Entry
Name=Hilton Head Prep
Icon=package_edutainment
Type=Directory
Encoding=UTF-8
</verbatim>
- Next, create or modify your .desktop files in /usr/share/applications/
(yes, I am using Crossover Office to provide Internet Explorer) Notice the Categories option. Notice how it matches up with the <Category> tag in the next step. You can create your own, or use the ones already used by other menus.
/usr/share/applications/faweb.desktop <verbatim> Desktop Entry Name=Faculty Access for the Web Nameen_US.ISO8859-1=Faculty Access for the Web Comment=Faculty Access For the Web Exec=iexplore https://my.securesite.here.org/ Icon=/usr/share/Ggradebook/pix/Ggradebook.xpm Terminal=false MultipleArgs=false Type=Application Encoding=UTF-8 Categories=HHPrep; </verbatim>
- Good, now for the final part... the files we are looking to edit/create are under /etc/xdg/menus I wanted to use an external menu.... just for myself, so this could be modified below:
/etc/xdg/menus/hhprep.menu
<verbatim>
<====DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
====
"http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
<Menu>
<Name>Hilton Head Prep</Name> <Directory>hhprep.directory</Directory>
<====-- toplevel menu items --> ==== <Include> <And>
<Category>HHPrep</Category>
</And> </Include>
</Menu> <====-- End System Settings --> ==== </verbatim>
- Final step. You need to make it so that the main applications menu includes your custom menu file(s):
/etc/xdg/applications.menu Insert: <verbatim>
<Menu> <Name>Hilton Head Prep</Name> <MergeFile>hhprep.menu</MergeFile> </Menu>
</verbatim>
That should be it==== If you want to see the results of your hard work, you can either log out and back in, or run "killall gnome-panel" ON YOUR OWN PANEL, NOT WHILE ROOT===== which will cause your panel to restart and "shouldn't" cause any problems (didn't for me). Note: I did not kill everyone's panel as root... so be carefull with that one.
=========
Henry
