Opened 15 years ago

Last modified 12 years ago

#36 closed defect

change app launch bat files to call o4w_env.bat — at Version 4

Reported by: maphew Owned by: maphew
Priority: major Component: Package
Version: Keywords:
Cc:

Description (last modified by maphew)

Go through all the packages and change

PATH=%OSGEO4W_ROOT%\bin;%PATH%
for %%f in ("%OSGEO4W_ROOT%"\etc\ini\*.bat) do call "%%f"

to

call "%OSGEO4W_ROOT%\bin\o4w_env.bat"
start "Foo title" /B "%OSGEO4W_ROOT%\bin\foo.exe" %*

Change History (4)

comment:2 by jef, 15 years ago

start /b "%OSGEO4W_ROOT%\bin\foo.exe" didn't work for me.

Looks like cmd misinterprets the quoted argument as window title. In the QGIS package I therefore use:

@echo off

SET OSGEO4W_ROOT=@osgeo4w@
call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
@echo off
call "%OSGEO4W_ROOT%"\bin\gdal16.bat

start "Quantum GIS" /B "%OSGEO4W_ROOT%"\bin\qgis.exe %*

The GRASS package now also uses o4w_env.bat

comment:3 by maphew, 15 years ago

Thank you for catching that jef, I've corrected that instructions accordingly.

comment:4 by maphew, 12 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.