[GRASS-dev] 6.3.0 release - need to set default font
Glynn Clements
glynn at gclements.plus.com
Mon Nov 26 05:36:03 EST 2007
Michael Barton wrote:
> >>> What about making GRASS_FONT a GRASS variable rather than a shell variable?
> >>> I assume that it then could be set by g.gisenv (ending up in .grassrc6) and
> >>> consequently would then persist across working sessions.
> >
> > Glynn Clements wrote:
> >> It should go into the user's environment, via ~/.grass.bashrc or one
> >> of the standard shell initialisation scripts, like any other user
> >> preference.
> >
> >
> > my guess here is that Michael is not seeing the GRASS_FONT set in
> > .grass.bashrc
> > as he is working in a GIS.m lauched by init.sh *before* the grass terminal
> > session (and thus .grass.bashrc) is run. If gis.m is run from the grass
> > terminal prompt it should see it.
>
> This seems to be the case (running TclTk or wxPython). If I quit the GUI and
> then restart it from the terminal, I can see the results of setting
> GRASS_FONT in .grass.bashrc.
Right. ~/.grass.bashrc (and ~/.grass.cshrc) are sourced by the
interactive shell (which is why we have separate bash/csh versions).
Environment settings can go into the "normal" environment
(~/.bash_profile etc). This also makes it easier to run GRASS commands
from outside of a "session".
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list