|
From: Don T. <dt...@gw...> - 2005-07-13 21:40:48
|
Typos Corrected. On Wed, 2005-07-13 at 15:32 -0500, Don Tanner wrote: > Hello Chris, > > On Wed, 2005-07-13 at 09:48 -0500, chris king wrote: > > Thanks for replying. > > Not a problem. Your welcome. > > > also wondering about a menu editor. > > Join the crowd =) > > We are currently still looking into this, I believe the change of not > having it as easy as right-clicking in the menu itself is the biggest > hurdle as everyone was used to that and of course it is the easiest way. > That feature no longer exists in stock gnome in the 2.10.x series. I am > not exactly sure which version that feature was removed (the right-click > in menu to change/edit menu feature). Right-clicking on a menu item > no longer gives you the option of editing the menu itself. It gives > you the options of adding a menu/sub-menu entry to the panel as you have > probably already noticed. > > I will give you a brief of what we have discovered so far. > Keep in mind I am not an expert on the new menu system and > I am only sharing what we have discovered so far. =) > > ========== > 1) The Foot Menu main entries > > The main entries in the Foot menu are created by the gnome-menus > package. I will paste only a couple of examples from the gnome-menus > package and you will see the pattern: > > /usr/share/desktop-directories/Accessibility.directory > /usr/share/desktop-directories/Accessories.directory > /usr/share/desktop-directories/Games.directory > > Take Multimedia.directory and Office.directory for examples here... > > /usr/share/desktop-directories/Multimedia.directory > /usr/share/desktop-directories/Office.directory > > 2) Multimedia.directory > > /usr/share/desktop-directories/Multimedia.directory > > Notice that Multimedia.directory creates the menu entry actually named > "Sound & Video" (Foot -> Sound & Video)" and NOT > "Foot -> Multimedia". The reason for this you will find by looking > in the file Multimedia.directory and noticing the second line from > the top of the file... > > "Name=Sound & Video" <-- This line in the Multimedia.directory file > determines the name that shows up in the menu, therefore the text that > shows up in the menu has nothing to do with the file name itself. > It is determined by that line in the file. > > If a file in this directory happens to be named the same as it's menu > entry: > (The "Foot -> Office" is a good example), it is not a result of > the file name. It would mean that it just so happens the file name > is the same as the "Name=foo" line in the file which is why I chose > Office.directory as my second example we will examine next. > > 3) Office.directory > > /usr/share/desktop-directories/Office.directory > > This file creates the menu entry "Foot -> Office" > > Looking in the file you will find the line: > "Name=Office" therefore the menu entry name is the > same as the file name but only because of the "Name=foo" line > in the Office.directory file. > > These files (*.directory) makeup the main structure of the Foot menu > and possibly "Places" and "Desktop" although I have not researched > that far yet. But for sure the files I listed above create main menu > entries in the Foot menu. > > Look around in the gnome-menus package and inside the files > in the directory/files I listed above and it will give you an idea of > the syntax of the files, etc. > > 4) The Foot Sub-Menus > > The sub-menu entries are created by *.desktop files. > For our example we will use the AbiWord sub-menu entry. > I have the stock Slackware-10.1 AbiWord package installed. > It ships with this file: -> /usr/share/applications/abiword.desktop > It creates this entry in the Foot menu... > "Foot -> Office -> AbiWord" > > These sub-menu entries are created by *.desktop files and on a > system-wide basis are located here: > > /usr/share/applications/*.desktop > > Section 1,2,3 and 4 are system-wide defaults. > > 5) Sub-Menu entries on a per user basis > > If a user wants to create his own menu entry, for AbiWord > for example, he would put his own abiword.desktop file in this > directory: > > ~/.local/share/applications/abiword.desktop > > This file for a particular user would override the system-wide > abiword.desktop file thus allowing the user to customize that > particular entry. > ========== > > > is there a > > package available or how do you edit the menu. from what I've been > > Unfortunately we have found no package that will edit these files for > you with a GUI interface. If you find a menu-editor for the gnome-2.10.x > versions please feel free to let us know. =) > > > thanks > > chris > > Hope this helps in some way, > Don > -- http://gware.org/ Freenode - #gware |