How To customize your eXtraMenu from eXchange

You're playing in the Big Leagues now, sort out your own root privileges.

Now that you have managed to get your own "My Own Menu" added to OzOs (How To add eXtraMenu from eXchange) you want to go about customizing it. So be it. As of yet I know of no gui tool to use so you are going to have to do it by hand.

You need to open up your ~/.e/e/extra_menu/mymenu.menu with your favourite text editor and have at it. Study what is there and then edit to suite.

Now instead of trying to go through a bunch of examples I thought I'd just post the *.menu & *.directory files I used for the three menus I posted in the other HowTo. To that end, if anybody else also does a custom menu, post it in the forum and I'll add it to this HowTo.

MOC Menu

-------------------------------------------------------------------------------
FILE: mymenu.menu
-------------------------------------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://standards.freedesktop.org/menu-spec/menu-1.0.dtd">
<Menu>
<Name>MOC</Name>
<DefaultAppDirs/>
<!--Uncomment this to search the .directory file in /usr/share/desktop-directory -->
<!--<DefaultDirectoryDirs/> -->
<!--Or use this to search the .directory file where the .menu reside -->
<DirectoryDir>./</DirectoryDir>
<Directory>mymenu.directory</Directory>
<Include>
<Filename>moc.desktop</Filename>
<Filename>moc-U.desktop</Filename>
<Filename>moc-P.desktop</Filename>
<Filename>moc-Q.desktop</Filename>
</Include>
</Menu>
-------------------------------------------------------------------------------

AND the mymenu.directory

-------------------------------------------------------------------------------
FILE: mymenu.directory
-------------------------------------------------------------------------------
[Desktop Entry]
Encoding=UTF-8
Type=Directory
Icon=/icons/ximian-multimedia.png
X-Enlightenment-Menu=main/0
Name=MOC
Name[it]=Il mio menu
-------------------------------------------------------------------------------

debian Menu

-------------------------------------------------------------------------------
FILE: debian.menu
-------------------------------------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://standards.freedesktop.org/menu-spec/menu-1.0.dtd">
<Menu>
<Name>debian</Name>
<DefaultAppDirs/>
<!--Uncomment this to search the .directory file in /usr/share/desktop-directory -->
<!--<DefaultDirectoryDirs/> -->
<!--Or use this to search the .directory file where the .menu reside -->
<DirectoryDir>./</DirectoryDir>
<Directory>debian.directory</Directory>
<Include>
<Filename>gmenu-simple-editor.desktop</Filename>
<Filename>xdiskusage.desktop</Filename>
</Include>
</Menu>
-------------------------------------------------------------------------------

AND the debian.directory

-------------------------------------------------------------------------------
FILE: debian.directory
-------------------------------------------------------------------------------
[Desktop Entry]
Encoding=UTF-8
Type=Directory
Icon=/icons/si0ux_-_Debian_Botton.png
X-Enlightenment-Menu=main/0
Name=debian
-------------------------------------------------------------------------------

OzOs Menu

-------------------------------------------------------------------------------
FILE: OzOs.menu
-------------------------------------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://standards.freedesktop.org/menu-spec/menu-1.0.dtd">
<Menu>
<Name>OzOs</Name>
<DefaultAppDirs/>
<!--Uncomment this to search the .directory file in /usr/share/desktop-directory -->
<!--<DefaultDirectoryDirs/> -->
<!--Or use this to search the .directory file where the .menu reside -->
<DirectoryDir>./</DirectoryDir>
<Directory>OzOs.directory</Directory>
<Include>
<Filename>Update_e17.desktop</Filename>
<Filename>Backup_e17.desktop</Filename>
<Filename>Ephoto.desktop</Filename>
<Filename>easy_e17.desktop</Filename>
<Filename>exhibit.desktop</Filename>
<Filename>edje_editor.desktop</Filename>
</Include>
</Menu>
-------------------------------------------------------------------------------

AND the OzOs.directory

-------------------------------------------------------------------------------
FILE: OzOs.directory
-------------------------------------------------------------------------------
[Desktop Entry]
Encoding=UTF-8
Type=Directory
Icon=/icons/garland_logo.png
X-Enlightenment-Menu=main/0
Name=OzOs
-------------------------------------------------------------------------------

A few things of Note:

First, the files *.desktop need to either be in the ~/.local, the default install location /var/lib/menu-xdg/desktop-directories/menu-xdg ( for debian ), /usr/share/applications and/or /opt/e17/share/applications ( for OzOs ),

Second, for the Icons you need the whole icon path; and

Third, the line "X-Enlightenment-Menu=main/0" in the *.directory file set's where in the Main Menu where your new menu will be put. A zero (0) places it at the top a one (1) right below the Applications entry, an eleven (11) at the bottom. Other numbers puts the new menu at other locations. You might have to refresh e or switch themes to get the new menu location set correctly.

Credit goes to Aubrey, whom I openly plagiarized some stuff from (Actually I'm not sure if I did this time, but just in case).

Teague MacRoot