I make no warranty as to the fitness or lawfulness of anything that follows.
This document describes a manual ONLY methodology of customizing the MIE. If you want to do it programmatically see http://www.freedesktop.org.
All files not located in your home directory must be edited as root. I prefer to do things graphically when I can so I type Alt-F2, kdesu konqueror, and enter my password when prompted. From there on I can do everything graphically as a root user. I don't sudo nautilus because I can't. On my system, at least, nautilus generates a page fault error and crashes if I try.
It would behoove you to backup applications.menu located in /etc/xdg/menus before you do anything else.
How to Create a Tab
To add a tab you need to create a directory configuration file (NAME.directory) and save it to /usr/share/desktop-directories. Then you need to reference it in a menu entry in applications.menu located in /etc/xdg/menus. I'll use the tab Creative Writing as my example.
Step 1/5: Create a directory configuration file called Writing.directory. The file name is not the name of your tab; that is specified by the internal argument 'Name='.
Step 2/5: Insert the following code and save:
- Code: Select all
[Desktop Entry]
Name=Creative Writing
Icon=applications-office
Type=Directory
Encoding=UTF-8
X-Ubuntu-Gettext-Domain=gnome-menus
Step 3/5: Open applications.menu and insert the following:
- Code: Select all
<Menu>
<Name>Creative Writing</Name>
<Directory>Writing.directory</Directory>
<Include>
<And>
<Category>Writing</Category>
</And>
</Include>
<Layout>
<Filename>ooo-writer.desktop</Filename>
<Filename>lyx.desktop</Filename>
<Filename>celtx.desktop</Filename>
<Filename>dramatica.desktop</Filename>
<Filename>basket.desktop</Filename>
<Merge type="all"/>
</Layout>
</Menu>
You can reorder your applications by changing how they're listed between the layout tags. The tab's layout doesn't have to be specified unless you want the order to be non alphabetical.
Step 4/5: Towards the bottom of the document between the final layout tags, in the order in which you would like your tab to appear, insert the following:
- Code: Select all
<Menuname>Creative Writing</Menuname>
Step 5/5: Save.
How to Add an Application to a Tab
To add an application to a tab you need to create a desktop configuration file (NAME.desktop) and save it to /usr/share/applications. I'll use the program Celtx as my example.
Step 1/3: Create a desktop configuration file called celtx.desktop. The file name is not the name of your application; that is specified by the internal argument 'Name='.
Step 2/3: For Celtx, the contents would be something similar to the following:
- Code: Select all
[Desktop Entry]
Type=Application
Name=Celtx
GenericName=Media Pre-production
Exec=/home/yourname/.celtx/celtx
Terminal=false
Icon=/home/yourname/.celtx/icons/mozicon128.png
Categories=Writing
StartupNotify=false
Step 3/3: Save.
Changing Icons of Applications that Automatically Install to a Tab
To change just the icon of an application that loads itself into a tab you can always just swap out the icon of coarse. There almost always located in /usr/share/pixmaps. Sometimes, however, they install to somewhere in /usr/share/icons/.
Changing Theme Icons
To change theme icons go to /usr/share/icons/GlassyBleu and /usr/share/icons/Human. For emblems, after you've changed them you'll still need to update the icon cache with gtk-update-icon-cache [path].


