[GRASS-dev] GRASS 6: GISRC on Windows

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

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.

Martin:

currently GIRC file is stored on Windows in

$HOME/.grassrc6

hmmm, I thought that already had happened. I guess
not.

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 :slight_smile: 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

Hamish wrote:

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 :slight_smile: 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 <glynn@gclements.plus.com>

Hi,

2011/12/3 Hamish <hamish_b@yahoo.com>:

currently GIRC file is stored on Windows in

$HOME/.grassrc6

hmmm, I thought that already had happened. I guess
not.

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

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.

2011/12/4 Martin Landa <landa.martin@gmail.com>:

Hi,

2011/12/3 Hamish <hamish_b@yahoo.com>:

currently GIRC file is stored on Windows in

$HOME/.grassrc6

hmmm, I thought that already had happened. I guess
not.

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
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

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.

2011/12/7 Maris Nartiss <maris.gis@gmail.com>:

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.

2011/12/4 Martin Landa <landa.martin@gmail.com>:

Hi,

2011/12/3 Hamish <hamish_b@yahoo.com>:

currently GIRC file is stored on Windows in

$HOME/.grassrc6

hmmm, I thought that already had happened. I guess
not.

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
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Hi,

2011/12/7 Maris Nartiss <maris.gis@gmail.com>:

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\.

self-compiled, stand-alone installer, OSGeo4W?

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

2011/12/8 Maris Nartiss <maris.gis@gmail.com>:

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

2011/12/8 Maris Nartiss <maris.gis@gmail.com>:

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