[GRASS-dev] where to store GRASS settings: GISRC and wx settings

Markus Metz markus.metz.giswork at googlemail.com
Mon Aug 29 12:35:54 EDT 2011


Looking at trunk, 6.5 and 6.4.2, there is inconsistency both within
and between branches where to store settings. While 6.4 usually stores
GISRC in $HOME/.grassrc6 and wx settings in $HOME/.grasswx6, the
recent wxGUI prefers $HOME/.grass6/wx on Linux and Mac and
$APPDATA/.grass6/wx on Windows. In trunk, these settings are stored in
.grass7/rc and .grass7/wx. The .grass7 folder is supposed to be in
$HOME (start up script) and $APPDATA (wxGUI under Windows). This is a
bit of a mess.

Lastly, a leading point makes MS Windows rather unhappy, i.e. is not
allowed and removed or the directory is not created at all (XP +
NTFS), thus .grass7 or .grass6, no matter where they are supposed to
live do not exist. I think that might have worked when these
files/folders where living under MS Windows in the MSYS home and not
the regular MS Windows home which has now been abandoned for good
reason (write permissions).

Therefore I suggest to use

$HOME/.grass<MAJORVERSION>/rc and $HOME/.grass<MAJORVERSION>/wx on
everything but MS Windows

and

$APPDATA/grass<MAJORVERSION>/rc and $APPDATA/grass<MAJORVERSION>/wx on
MS Windows

Tired of testing on MS Windows,

Markus M


More information about the grass-dev mailing list