Menu entries in E17

Every now and then I get this ideas to use the amazing Enlightenment17 — a truly beautiful semi desktop environment. The problem with it was that no menu file was provided by default. Recent versions include a menu file, but I still prefer to use the one from before.

So, I would create a file named applications.menu and paste the following in it:

<?xml version="1.0"?>
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">

<Menu>

<Name>Applications</Name>

<!-- put in /etc/xdg/menus -->
<!-- Read .desktop file from only this location -->
<!-- Or remove and use the two items below      -->
<AppDir>/usr/share/applications</AppDir>

<!-- Read standard .directory and .desktop file locations -->
<!-- by uncommenting these.                               -->
<!-- <DefaultAppDirs/> -->
<!-- <DefaultDirectoryDirs/> -->

<!-- Define a layout                                         -->
<!-- The Layout is what gives your menu its sort order.      -->
<!-- Without this section the menu is sorted alphabetically. -->
<Layout>
<Menuname>Accessories</Menuname>
<Separator/>
<Menuname>Entertainment</Menuname>
<Separator/>
<Menuname>Graphics</Menuname>
<Separator/>
<Menuname>Media</Menuname>
<Separator/>
<Menuname>Network</Menuname>
<Separator/>
<Menuname>Office</Menuname>
<Separator/>
<Menuname>Education</Menuname>
<Separator/>
<Menuname>System</Menuname>

</Layout>

<Menu>
<Name>Accessories</Name>
<Include> <Category>Utility</Category> </Include>
</Menu>

<Menu>
<Name>Entertainment</Name>
<Include> <Category>Game</Category> </Include>
</Menu>

<Menu>
<Name>Graphics</Name>
<Include> <Category>Graphics</Category> </Include>
</Menu>

<Menu>
<Name>Media</Name>
<Include> <Category>AudioVideo</Category> </Include>
</Menu>

<Menu>
<Name>Network</Name>
<Include> <Category>Network</Category> </Include>
</Menu>

<Menu>
<Name>Office</Name>
<Include> <Category>Office</Category> </Include>
</Menu>

<Menu>
<Name>Education</Name>
<Include> <Category>Education</Category> </Include>
</Menu>

<Menu>
<Name>System</Name>
<Include> <Category>System</Category> </Include>
</Menu>


</Menu> <!-- End Applications -->

Save and place the applications.menu file in /etc/xdg/menus — now menu entries should appear as I like them.

EDIT (09 May 2015): The recent Enlightenment releases do not need this.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s