[GRASS-dev] Re: winGRASS

Glynn Clements glynn at gclements.plus.com
Tue Feb 13 07:16:05 EST 2007


Moritz Lennert wrote:

> Another similar problem: I have a German language WinXP installed on my
> machine in which programs are installed at c:\Programme and not
> "c:\Program Files".

That's due to this line in lib/init/init.bat:

if "%GRASS_HTML_BROWSER%"=="" set GRASS_HTML_BROWSER=%SYSTEMDRIVE%/PROGRA~1/INTERN~1/IEXPLORE.EXE

It should probably be:

if "%GRASS_HTML_BROWSER%"=="" set GRASS_HTML_BROWSER=%ProgramFiles%/INTERN~1/IEXPLORE.EXE

%ProgramFiles% will be set to the system's "Program Files" directory
(or whatever it is called on a particular system, e.g. "C:\Programme"
on a German system).

However, there are better solutions available on Windows, e.g.

	rundll32 url.dll,FileProtocolHandler <filename or URL>

E.g.:

	rundll32 url.dll,FileProtocolHandler "c:\Cygwin\usr\local\grass-6.2.1\docs\html\grass6.html"
or:
	rundll32 url.dll,FileProtocolHandler "http://grass.itc.it"

This has the advantage of using the default application rather than
hardcoding MSIE.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list