[GRASS-dev] [GRASS GIS] #1286: clean_temp can not be called before LCATION_NAME is set

GRASS GIS trac at osgeo.org
Tue Mar 1 06:09:59 EST 2011


#1286: clean_temp can not be called before LCATION_NAME is set
-------------------------+--------------------------------------------------
 Reporter:  marisn       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  blocker      |   Milestone:  6.4.1                    
Component:  Startup      |     Version:  6.4.1 RCs                
 Keywords:               |    Platform:  MSWindows Vista          
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 clean_temp uses G_gisinit(argv[0]) and thus should never be run outside of
 GRASS session, still it is used in init.bat before location name is set on
 windows and is failing with error: "G_getenv(): Variable LOCATION_NAME not
 set" Calling G_getenv on non-existing variable is an fatal error and thus
 brings down whole startup procedure.

 There are two possible solutions for this problem:
  * do not use clean_temp in init.bat
  * do not use G_gisinit() in clean_temp

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1286>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list