Opened 10 years ago

Closed 10 years ago

#2176 closed defect (fixed)

create .grass7 directory at startup

Reported by: lucadelu Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: Default Version: svn-trunk
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

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

Attachments (1)

grass_startup.diff (563 bytes ) - added by lucadelu 10 years ago.

Download all attachments as: .zip

Change History (3)

by lucadelu, 10 years ago

Attachment: grass_startup.diff added

comment:1 by martinl, 10 years ago

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

in reply to:  1 comment:2 by lucadelu, 10 years ago

Resolution: fixed
Status: newclosed

Replying to martinl:

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

Ok, fixed in r59106

Note: See TracTickets for help on using tickets.