[GRASS-dev] [GRASS GIS] #2176: create .grass7 directory at startup

#2176: create .grass7 directory at startup
-------------------------+--------------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
I everybody,

testing g.gui.rlisetup I discovered that the .grass7 directory is created
only at the end of the first session that the user launch grass7.

This is a problem for modules like g.gui.rlisetup because they write on
.grass7 directory.

I added a patch to solve this issue, if you don't see any
contraindications I can submit it

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2176&gt;
GRASS GIS <http://grass.osgeo.org>

#2176: create .grass7 directory at startup
-------------------------+--------------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by martinl):

Right, the '.grass7' directory is written on exit when storing '.rc' file
source:grass/trunk/lib/init/grass.py#L1379. Every session using copy of
'rc' file saved in temp file source:grass/trunk/lib/init/grass.py#L264.

Your patch seems to be reasonable. wxGUI behaves similarly
source:grass/trunk/gui/wxpython/core/settings.py#L989

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2176#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2176: create .grass7 directory at startup
--------------------------+-------------------------------------------------
  Reporter: lucadelu | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Resolution: fixed | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by lucadelu):

  * status: new => closed
  * resolution: => fixed

Comment:

Replying to [comment:1 martinl]:

> Your patch seems to be reasonable. wxGUI behaves similarly
source:grass/trunk/gui/wxpython/core/settings.py#L989

Ok, fixed in r59106

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2176#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>