[GRASS-dev] does GRASS need HOME to be defined?

Glynn Clements glynn at gclements.plus.com
Wed Nov 23 04:15:56 PST 2016


Helmut Kudrnovsky wrote:

> >> anyone more insight, if %HOME% is needed in winGRASS?
> >
> >Done by Glynn in:
> >https://trac.osgeo.org/grass/changeset/37873
> 
> does GRASS need HOME to be defined?
> 
> any hints?

It's used G__home() on Unix (and as a fallback on Windows) and it's
used for G_rc_path() on Windows (for some reason, the Unix version
uses getpwuid(), which is probably incorrect in this context).

It may also be used implicitly by library functions or external
programs looking for configuration files.

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


More information about the grass-dev mailing list