[GRASS5] question about updating g.mapsets in GIS Manager
Michael Barton
michael.barton at asu.edu
Fri Oct 15 17:38:12 EDT 2004
OK. This sounds reasonable. I'll make the change to menu.tcl and commit it.
Michael
On 10/15/04 2:08 PM, "Glynn Clements" <glynn.clements at virgin.net> wrote:
>
> Michael Barton wrote:
>
>> In a recent update, the nice radiobutton interface to g.mapsets (the one
>> that gives you access to different mapsets within a location) ?disappeared?
>> when the command is called.
>
> Right. g.mapsets was changed when I removed front.end. Now, rather
> than having separate cmd/inter versions, the single version does this:
>
> if (argc < 2)
> execl("/bin/sh", "sh", "-c", "$GISBASE/etc/g.mapsets.tcl", NULL);
>
> However, that only works if g.mapsets is run without arguments.
>
> That will have stopped working when the tcltkgrass "execute" procedure
> was changed to use the --tcltk switch. The new version of execute uses
> --tcltk, and expects the program to generate Tcl/Tk code on its
> stdout, which is then executed.
>
> For the Tcl/Tk case, the simplest solution is to change menu.tcl to
> use e.g. "spawn $env(GISBASE)/etc/g.mapsets.tcl" instead of attempting
> to run the g.mapsets program.
______________________________
Michael Barton, Professor of Anthropology
School of Human Diversity and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA
voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
More information about the grass-dev
mailing list