[GRASS-user] menu items

Glynn Clements glynn at gclements.plus.com
Wed Feb 11 04:59:54 EST 2009


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.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list