Discussion:
GRASS 6: GISRC on Windows
(too old to reply)
Martin Landa
2011-12-02 13:44:29 UTC
Permalink
Hi,

currently GIRC file is stored on Windows in

$HOME/.grassrc6

This location seems to be probably quite weird for normal Windows
user. I would suggest to store GISRC in `$APPDATA\GRASS6\rc`. This
change affects only GRASS-Installer and init.bat script.

What do you think about that?

Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
Helmut Kudrnovsky
2011-12-02 22:03:12 UTC
Permalink
Post by Martin Landa
currently GIRC file is stored on Windows in
$HOME/.grassrc6
This location seems to be probably quite weird for normal Windows
user. I would suggest to store GISRC in `$APPDATA\GRASS6\rc`. This
change affects only GRASS-Installer and init.bat script.
What do you think about that?
+1

best regards
Helmut

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/GRASS-6-GISRC-on-Windows-tp7054740p7056273.html
Sent from the Grass - Dev mailing list archive at Nabble.com.
Hamish
2011-12-03 00:54:00 UTC
Permalink
Post by Martin Landa
currently GIRC file is stored on Windows in
$HOME/.grassrc6
hmmm, I thought that already had happened. I guess
not.
Post by Martin Landa
This location seems to be probably quite weird
for normal Windows user. I would suggest to store
GISRC in `$APPDATA\GRASS6\rc`.
It seems like a good & natural idea to move it into
$APPDATA\GRASS6 on Windows -- but do keep the
'grassrc6' name.

Even without getting into the arguments about no
renaming a core support file during a stable series,
there are years and years of old hints, suggestions
and docs in the mailing list archives and elsewhere
which refer the user to {check|delete|edit} that
'grassrc6' filename in case of trouble. If the name
is evolved beyond easy recognition all that
treasure of help and web search results will be
worth very little, and it is harder to do a file
search to find it (the XP puppy is cute but not very
helpful.. I guess that's why they made it cute so it
was harder to get mad at; consider also the results
of `locate rc` vs. `locate grassrc` on UNIX or a
web/nabble search).
Make it the filename users have come to expect, in
the location which users expect on that particular
platform.


also fwiw, "run commands" from the era when ~/.files
were `source`d at program startup is pretty
meaningless in this context. if it were going to be
renamed (ie in trunk :-) perhaps it is better to
change it to something more understandable than a
semi-obsolete two letter acronym? On UNIX there is
enough entrenched tradition to perhaps justify it,
but for Windows.. not so much.


2c,
Hamish
Glynn Clements
2011-12-03 11:30:52 UTC
Permalink
Post by Hamish
also fwiw, "run commands" from the era when ~/.files
were `source`d at program startup is pretty
meaningless in this context. if it were going to be
renamed (ie in trunk :-) perhaps it is better to
change it to something more understandable than a
semi-obsolete two letter acronym? On UNIX there is
enough entrenched tradition to perhaps justify it,
Except that the "grassrc" file isn't actually an "rc" file.

It may have been at one time (given the G_getenv() name, I suspect
that GRASS variables may once have been actual environment variables),
but that's ancient history now.
--
Glynn Clements <***@gclements.plus.com>
Martin Landa
2011-12-03 22:38:56 UTC
Permalink
Hi,
Post by Hamish
Post by Martin Landa
currently GIRC file is stored on Windows in
$HOME/.grassrc6
hmmm, I thought that already had happened. I guess
not.
Post by Martin Landa
This location seems to be probably quite weird
for normal Windows user. I would suggest to store
GISRC in `$APPDATA\GRASS6\rc`.
It seems like a good & natural idea to move it into
$APPDATA\GRASS6 on Windows -- but do keep the
'grassrc6' name.
done in r49506, build for testing available at [1].

Martin

[1] http://wingrass.fsv.cvut.cz/grass65/WinGRASS-6.5.SVN-r49506-1-Setup.exe
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
Maris Nartiss
2011-12-07 06:39:45 UTC
Permalink
Seems that recent changes have broken something on Windows. This is
what I get when I try to start GRASS (WinGRASS-6.4.SVN-r49571-1) on
Vista (had to run from CMD to see anything and had to enable echo on
init.bat file):

C:\Users\tests>"C:\Program Files\GRASS 6.4.SVN\etc\echo" "GISDBASE: C:\Users\tes
ts" | g.dirseps -g 1>"C:\Users\tests\AppData\Roaming\GRASS6\grassrc6"
The system cannot find the path specified.

There is no "GRASS6" folder in C:\Users\tests\AppData\Roaming\.
Maris.
Post by Martin Landa
Hi,
Post by Hamish
Post by Martin Landa
currently GIRC file is stored on Windows in
$HOME/.grassrc6
hmmm, I thought that already had happened. I guess
not.
Post by Martin Landa
This location seems to be probably quite weird
for normal Windows user. I would suggest to store
GISRC in `$APPDATA\GRASS6\rc`.
It seems like a good & natural idea to move it into
$APPDATA\GRASS6 on Windows -- but do keep the
'grassrc6' name.
done in r49506, build for testing available at [1].
Martin
[1] http://wingrass.fsv.cvut.cz/grass65/WinGRASS-6.5.SVN-r49506-1-Setup.exe
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
_______________________________________________
grass-dev mailing list
http://lists.osgeo.org/mailman/listinfo/grass-dev
Maris Nartiss
2011-12-08 10:55:02 UTC
Permalink
I fixed startup of 6.4 on Windows in r49618.
Seems that grassrc6 file storage has been changed for 6.4 but not for the 6.5.

Maris.
Post by Maris Nartiss
Seems that recent changes have broken something on Windows. This is
what I get when I try to start GRASS (WinGRASS-6.4.SVN-r49571-1) on
Vista (had to run from CMD to see anything and had to enable echo on
C:\Users\tests>"C:\Program Files\GRASS 6.4.SVN\etc\echo" "GISDBASE: C:\Users\tes
ts"   | g.dirseps -g  1>"C:\Users\tests\AppData\Roaming\GRASS6\grassrc6"
The system cannot find the path specified.
There is no "GRASS6" folder in C:\Users\tests\AppData\Roaming\.
Maris.
Post by Martin Landa
Hi,
Post by Hamish
Post by Martin Landa
currently GIRC file is stored on Windows in
$HOME/.grassrc6
hmmm, I thought that already had happened. I guess
not.
Post by Martin Landa
This location seems to be probably quite weird
for normal Windows user. I would suggest to store
GISRC in `$APPDATA\GRASS6\rc`.
It seems like a good & natural idea to move it into
$APPDATA\GRASS6 on Windows -- but do keep the
'grassrc6' name.
done in r49506, build for testing available at [1].
Martin
[1] http://wingrass.fsv.cvut.cz/grass65/WinGRASS-6.5.SVN-r49506-1-Setup.exe
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
_______________________________________________
grass-dev mailing list
http://lists.osgeo.org/mailman/listinfo/grass-dev
Martin Landa
2011-12-08 11:09:02 UTC
Permalink
Post by Maris Nartiss
I fixed startup of 6.4 on Windows in r49618.
thanks, backported to devbr6 in r49619.

Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
Martin Landa
2011-12-08 11:05:34 UTC
Permalink
Hi,
Post by Maris Nartiss
I fixed startup of 6.4 on Windows in r49618.
Seems that grassrc6 file storage has been changed for 6.4 but not for the 6.5.
it should be done for 64 and also for 65.

Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
Martin Landa
2011-12-08 11:04:51 UTC
Permalink
Hi,
Post by Maris Nartiss
Seems that recent changes have broken something on Windows. This is
what I get when I try to start GRASS (WinGRASS-6.4.SVN-r49571-1) on
Vista (had to run from CMD to see anything and had to enable echo on
C:\Users\tests>"C:\Program Files\GRASS 6.4.SVN\etc\echo" "GISDBASE: C:\Users\tes
ts"   | g.dirseps -g  1>"C:\Users\tests\AppData\Roaming\GRASS6\grassrc6"
The system cannot find the path specified.
There is no "GRASS6" folder in C:\Users\tests\AppData\Roaming\.
self-compiled, stand-alone installer, OSGeo4W?

Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
Continue reading on narkive:
Loading...