So I am digging into why GRASS GUI is crashing on start up. A couple days ago, 
I found that adding the LANG: ... line to .grassrc6 prevented this.

In continuing to dig into this today, I think that fix was a red herring. That 
is not why it is crashing. The reason it is crashing is because the Mac desktop 
is by default added to GRASS_ADDON_PATH and globalvar.py is grabbing some 
hidden, non-parsable file names when it scans the desktop for GRASS commands. I 
don't understand why it is getting these hidden files from the desktop and not 
getting the same junk when it scans other folders, but the most limited fix for 
this is adding...

if fname[0:2] not in ['d.','g.','r.','v.','i.','m.','p.','r3','db']: continue

after line 153 in globalvar.py

To make sure that globalvar.py only picks up legitimate commands, however, it 
would probably be good to add something like this to all folder scans or maybe 
to filter the resulting command list before it is returned. Before doing either 
of those, I want to make sure that I have not missed any GRASS command 
prefixes. Does this list look comprehensive?

['d.','g.','r.','v.','i.','m.','p.','r3','db']

After this issue is solved, I can look again at the locale issue. It *looks* 
like it should be doing the right thing (the change set I quoted yesterday was 
out of date), but something is not quite working somewhere.

Michael
_____________________
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research &
University Consortium for Atmospheric Research
303-497-2889 (voice)

Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
www: http://www.public.asu.edu/~cmbarton, 
http://csdc.asu.edu<http://csdc.asu.edu/>





_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to