Skip to content

Commit 801821f

Browse files
committed
osgeo4w: fix quoting in batch files
1 parent 565ad28 commit 801821f

8 files changed

+17
-16
lines changed
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
@echo off
22
call "%~dp0\o4w_env.bat"
3-
call "%OSGEO4W_ROOT%"\apps\grass\grass-@grassversion@\etc\env.bat
4-
call "%~dp0\qt5_env.bat"
5-
call "%~dp0\py3_env.bat"
3+
call "%OSGEO4W_ROOT%\apps\grass\grass-@grassversion@\etc\env.bat"
4+
call qt5_env.bat
5+
call py3_env.bat
66
@echo off
77
path %OSGEO4W_ROOT%\apps\@package@\bin;%OSGEO4W_ROOT%\apps\grass\grass-@grassversion@\lib;%OSGEO4W_ROOT%\apps\grass\grass-@grassversion@\bin;%PATH%
88
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/@package@
99
set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\@package@\qtplugins;%OSGEO4W_ROOT%\apps\qt5\plugins
10-
start "QGIS Browser" /B "%OSGEO4W_ROOT%"\bin\@package@-browser-bin.exe %*
10+
start "QGIS Browser" /B "%OSGEO4W_ROOT%\bin\@package@-browser-bin.exe" %*

ms-windows/osgeo4w/browser.bat.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
@echo off
22
call "%~dp0\o4w_env.bat"
3-
call "%~dp0\qt5_env.bat"
4-
call "%~dp0\py3_env.bat"
3+
call qt5_env.bat
4+
call py3_env.bat
55
@echo off
66
path %OSGEO4W_ROOT%\apps\@package@\bin;%PATH%
77
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/@package@
88
set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\@package@\qtplugins;%OSGEO4W_ROOT%\apps\qt5\plugins
9-
start "QGIS Browser" /B "%OSGEO4W_ROOT%"\bin\@package@-browser-bin.exe %*
9+
start "QGIS Browser" /B "%OSGEO4W_ROOT%\bin\@package@-browser-bin.exe" %*

ms-windows/osgeo4w/designer.bat.tmpl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@echo off
22
call "%~dp0\o4w_env.bat"
3-
call "%~dp0\qt5_env.bat"
3+
call qt5_env.bat
4+
call py3_env.bat
45
path %OSGEO4W_ROOT%\apps\@package@\bin;%PATH%
56
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/@package@
67
set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\@package@\qtplugins;%OSGEO4W_ROOT%\apps\qt5\plugins
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
call "%OSGEO4W_ROOT%\bin\o4w_env.bat"
2-
call "%OSGEO4W_ROOT%\bin\qt5_env.bat"
2+
call qt5_env.bat
33
path %PATH%;%OSGEO4W_ROOT%\apps\@package@\bin
44
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/@package@
55
"%OSGEO4W_ROOT%\apps\@package@\crssync"

ms-windows/osgeo4w/postinstall-dev.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ REM Do not register extensions if release is installed
2929
if not exist "%O4W_ROOT%\apps\qgis\bin\qgis.reg" nircmd elevate "%WINDIR%\regedit" /s "%O4W_ROOT%\apps\@package@\bin\qgis.reg"
3030

3131
call "%OSGEO4W_ROOT%\bin\o4w_env.bat"
32-
call "%OSGEO4W_ROOT%\bin\qt5_env.bat"
32+
call qt5_env.bat
3333
path %PATH%;%OSGEO4W_ROOT%\apps\@package@\bin
3434
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/@package@
3535
"%OSGEO4W_ROOT%\apps\@package@\crssync"

ms-windows/osgeo4w/python.bat.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@echo off
22
call "%~dp0\o4w_env.bat"
3-
call "%~dp0\qt5_env.bat"
4-
call "%~dp0\py3_env.bat"
3+
call qt5_env.bat
4+
call py3_env.bat
55
@echo off
66
path %OSGEO4W_ROOT%\apps\@package@\bin;%PATH%
77
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/@package@
@@ -11,4 +11,4 @@ set VSI_CACHE=TRUE
1111
set VSI_CACHE_SIZE=1000000
1212
set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\@package@\qtplugins;%OSGEO4W_ROOT%\apps\qt5\plugins
1313
set PYTHONPATH=%OSGEO4W_ROOT%\apps\@package@\python;%PYTHONPATH%
14-
"%OSGEO4W_ROOT%"\bin\python.exe %*
14+
"%PYTHONHOME%\python" %*

ms-windows/osgeo4w/qgis-grass.bat.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
22
call "%~dp0\o4w_env.bat"
3-
call "%OSGEO4W_ROOT%"\apps\grass\grass-@grassversion@\etc\env.bat
3+
call "%OSGEO4W_ROOT%\apps\grass\grass-@grassversion@\etc\env.bat"
44
call qt5_env.bat
55
call py3_env.bat
66
@echo off
@@ -11,4 +11,4 @@ rem Set VSI cache to be used as buffer, see #6448
1111
set VSI_CACHE=TRUE
1212
set VSI_CACHE_SIZE=1000000
1313
set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\@package@\qtplugins;%OSGEO4W_ROOT%\apps\qt5\plugins
14-
start "QGIS" /B "%OSGEO4W_ROOT%"\bin\@package@-bin.exe %*
14+
start "QGIS" /B "%OSGEO4W_ROOT%\bin\@package@-bin.exe" %*

ms-windows/osgeo4w/qgis.bat.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ rem Set VSI cache to be used as buffer, see #6448
1010
set VSI_CACHE=TRUE
1111
set VSI_CACHE_SIZE=1000000
1212
set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\@package@\qtplugins;%OSGEO4W_ROOT%\apps\qt5\plugins
13-
start "QGIS" /B "%OSGEO4W_ROOT%"\bin\@package@-bin.exe %*
13+
start "QGIS" /B "%OSGEO4W_ROOT%\bin\@package@-bin.exe" %*

0 commit comments

Comments
 (0)