Opened 11 years ago
Closed 11 years ago
#2176 closed defect (fixed)
create .grass7 directory at startup
Reported by: | lucadelu | Owned by: | |
---|---|---|---|
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)
Change History (3)
by , 11 years ago
Attachment: | grass_startup.diff added |
---|
follow-up: 2 comment:1 by , 11 years ago
comment:2 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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.
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