[GRASS-user] menu items

Markus Neteler neteler at osgeo.org
Wed Feb 11 12:03:45 EST 2009


On Wed, Feb 11, 2009 at 10:59 AM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> Koen Hufkens wrote:
>
>> I'm cleaning up my grass scripts and making them user friendly using the
>> g.parser module.
>>
>> However, I'm wondering if it is possible to add a menu item to the gis
>> manager window in a similar fashion. I found d.menu but this doesn't do
>> what I expected it to do. Any tips and hints on how to add on an extra
>> menu item in the gis.m gis manager?
>
> You need to modify $GISBASE/etc/gm/gmmenu.tcl.
>
> Or alternatively, create $GISBASE/etc/xtnmenu.dat file, or
> <dir>/xtnmenu.dat for any <dir> in $GRASS_ADDON_ETC. However, I'm not
> entirely sure of the format; examine the code at the top of gmmenu.tcl
> for clues.

...added as new FAQ:

 http://grass.osgeo.org/wiki/GIS_manager

Markus


More information about the grass-user mailing list