[GRASS-dev] [GRASS GIS] #3462: Allow setting environment variables in grass startup script

GRASS GIS trac at osgeo.org
Thu Jan 11 15:26:07 PST 2018

#3462: Allow setting environment variables in grass startup script
  Reporter:  mankoff      |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  major        |  Milestone:  7.2.3
 Component:  Startup      |    Version:  7.2.2
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX

Comment (by mankoff):

 Hello again,

 To try to clarify/summarize the above comments: OS X has a security
 feature that makes `load_env()` not work properly, and therefore the
 temporal framework is not available to OS X users. There is a simple work-
 around: Remove one line in the startup script. Patch is attached.

 There may be other ways to fix this bug, but I have not yet discovered
 them, and the proposed fix is simple and has no downsides that I can see
 or that anyone has mentioned in the comments.

 I have asked but not received an explanation for why this line exists in
 the startup script. The offending line blocks users from `export`'ing
 environment variables in `~/.grass7/bashrc`. This decision confuses me -
 GRASS is a power-user tool, and anyone setting environment variables there
 presumably knows what they are doing.

Ticket URL: <https://trac.osgeo.org/grass/ticket/3462#comment:15>
GRASS GIS <https://grass.osgeo.org>

More information about the grass-dev mailing list