OPENBOX HOME

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.).

lxdemenu
LXDE Menu with
Favorites Category
To illustrate adding a category, suppose a new category named Favorites is desired in the lxde-applications menu. Proceed as follows:

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:

    item {
      image=/path/to/icon/file
      name=anything
      action=exec
   }

lxde menu
LXDE Menu with
Qupzilla Added
The upper image on the right illustrates a menu where qupzilla has been added as follows:

Plugin {
   type = menu
   Config {
      image=/usr/share/icons/menu.png
      system {
      }
      separator {
      }
      item {
          image=/usr/share/icons/qupzilla.png
         name=Qupzilla
         action=/usr/bin/qupzilla
      }
      item{
         image=/usr/share/icons/run.png
         command=run
      }
   }
}

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.

OPENBOX HOME