Menu Category Configuration
Panel menus, like the LXDE Menu found on Lxpanel, are generally generated by 2 sets of files, the ?-applications.menu file found in /etc/xdg/menus/ and the ?-[cn].directory files found in /usr/share/desktop-directories. Here [cn] symbolizes the "category name". So editing, adding or removing categories in such a menu means altering these files. Other items (outside the main categories) are added or removed by editing the panel configuration file in the users home directory (usually in ~/.config.).
LXDE Menu with To illustrate adding a category, suppose a new category named Favorites is desired in the lxde-applications menu. Proceed as follows:
- Create a new file exactly as the image on the upper-left. Name it lxde-favorites.directory, and move it to /usr/share/desktop-directories. The entry in the icon line should be the path to your icon choice, which can be any icon.
- Create a text clip exactly as the image on the right. Copy and paste this clip in /etc/xdg/menus/lxde-application.menu. Position this clip among the other <Menu> clips where you want Favorites to appear in the Main Menu.
- To put the first application into Favorites, edit its .desktop file, which will likely be in either /usr/share/applications, /usr/local/share/applications or /usr/local/share/applications, so that the "Categories=" includes "Favorites;".
To put launchers below Preferences, open up the Lxpanel configuration file in your home directory (probably ~/.config/lxpanel/default/panels/panel) and place a section immediately below or above the "run" entry designed exactly according to the following guide:
LXDE Menu with
The upper image on the right illustrates a menu where qupzilla has been added as follows:
type = menu
Adding categories or items to Fbpanel apparently requires editing the fbpanel configuration file in the user's home directory, ~/.config/fbpanel/default. See Fbpanel on how to do it. Apparently fbpanel menu is derived from something other than a ?-applications.menu file from /etc/xdg/menus/, so the procedure described above does not work.