Better way to manage my Ubuntu main menu...
Posted: Sat Mar 12, 2011 11:12 am
Here's what you do!
Open ~/.config/menus/applications.menu in your text editor of choice
then find the menu you want to add stuff to, like "Office".
You'll see
Find your .desktop files you want to move over like this:
Place them within the <include> tags.
I can just use this line of text "<Filename>wine-Programs-Microsoft Office-Microsoft Office ______ 2007.desktop</Filename>" and replace the "_____" with the application name, so this is really easy editing. The icon and everything is correct once I'm done.
The effects are instant! You can separators and whatever you want. This file is very easy to play with.
I might make a Python app that handles it better than the regular edit menu does, however, this file isn't hard to use.
In case anyone was wondering, I took these screenshots using $ gnome-screenshot --delay 10
Open ~/.config/menus/applications.menu in your text editor of choice
then find the menu you want to add stuff to, like "Office".
You'll see
Code: Select all
<Menu>
<Name>Office</Name>
<Include>
<Filename>Dia Diagram Editor.desktop</Filename>
</Include>
<Exclude>
<Filename>gnome-dictionary.desktop</Filename>
</Exclude>
<AppDir>/home/isaac/.local/share/applications</AppDir>
<Exclude>
<Filename>evolution.desktop</Filename>
</Exclude>
</Menu>
Code: Select all
<Filename>wine-Programs-Microsoft Office-Microsoft Office Word 2007.desktop</Filename>
<Filename>wine-Programs-Microsoft Office-Microsoft Office Excel 2007.desktop</Filename>
<Filename>wine-Programs-Microsoft Office-Microsoft Office Access 2007.desktop</Filename>
<Filename>wine-Programs-Microsoft Office-Microsoft Office PowerPoint 2007.desktop</Filename>
I can just use this line of text "<Filename>wine-Programs-Microsoft Office-Microsoft Office ______ 2007.desktop</Filename>" and replace the "_____" with the application name, so this is really easy editing. The icon and everything is correct once I'm done.
Code: Select all
<Menu>
<Name>Office</Name>
<Include>
<Filename>Dia Diagram Editor.desktop</Filename>
<Filename>wine-Programs-Microsoft Office-Microsoft Office Word 2007.desktop</Filename>
<Filename>wine-Programs-Microsoft Office-Microsoft Office Excel 2007.desktop</Filename>
<Filename>wine-Programs-Microsoft Office-Microsoft Office Access 2007.desktop</Filename>
<Filename>wine-Programs-Microsoft Office-Microsoft Office PowerPoint 2007.desktop</Filename>
</Include>
<Exclude>
<Filename>gnome-dictionary.desktop</Filename>
</Exclude>
<AppDir>/home/isaac/.local/share/applications</AppDir>
<Exclude>
<Filename>evolution.desktop</Filename>
</Exclude>
</Menu>
I might make a Python app that handles it better than the regular edit menu does, however, this file isn't hard to use.
In case anyone was wondering, I took these screenshots using $ gnome-screenshot --delay 10