#1286: clean_temp can not be called before LCATION_NAME is set -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-dev@… Type: defect | Status: new Priority: critical | Milestone: 6.4.1 Component: Startup | Version: 6.4.1 RCs Keywords: wingrass | Platform: MSWindows Vista Cpu: Unspecified | -------------------------+--------------------------------------------------
Comment(by hamish): Replying to [comment:4 martinl]: > Replying to [comment:3 marisn]: > > All three places of clean_tmp can be reached without LOCATION_NAME being set. http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/lib/init/init.ba > > On which conditions? Seems to work here without any problem. try removing the %HOME%/.grassrc6 file or installing on a fresh system/VM. And/or cancel after initial startup with a new .grassrc6 file containing location (etc) set to <UNKNOWN>, then restart. Or delete/rename the GISDBASE, LOCATION, or MAPSET dir which happens to be the last one used. The .bat file just checks that the rc file exists in %HOME%, not that it contains valid entries, and if it's the same as init.sh, the operational version used by G_*() isn't the one in $HOME anyway. I'm not sure if init.sh is terribly better about it checking validity, but the question is if it creates a fatal script exit in the WinGrass startup, while a similar problem would just create a harmless error message to the console on UNIX. ?? Hamish -- Ticket URL: <https://trac.osgeo.org/grass/ticket/1286#comment:7> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev