mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
qgis_app.dll (inspired by Nathan's PR #4156) On install each shortcut/configuration gets a own copy of the (small) exe. That exe is started through the batch file that originally was used to start the app at runtime. Argument --exit will cause the wrapper to just dump the environment to an .env file next to the copy of the .exe. The created shortcuts now point at those .exes instead of the batch files. At runtime the .exes source their .env file to get a working environment to run QGIS (ie. qgis_app.dll). This for example allows the application to be pinned to the taskbar and avoids the of necessity of batch files at runtime to start the app.
15 lines
653 B
Cheetah
15 lines
653 B
Cheetah
@echo off
|
|
call "%~dp0\o4w_env.bat"
|
|
call "%OSGEO4W_ROOT%\apps\grass\grass-@grassversion@\etc\env.bat"
|
|
call qt5_env.bat
|
|
call py3_env.bat
|
|
@echo off
|
|
path %OSGEO4W_ROOT%\apps\@package@\bin;%OSGEO4W_ROOT%\apps\grass\grass-@grassversion@\lib;%OSGEO4W_ROOT%\apps\grass\grass-@grassversion@\bin;%PATH%
|
|
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/@package@
|
|
set GDAL_FILENAME_IS_UTF8=YES
|
|
rem Set VSI cache to be used as buffer, see #6448
|
|
set VSI_CACHE=TRUE
|
|
set VSI_CACHE_SIZE=1000000
|
|
set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\@package@\qtplugins;%OSGEO4W_ROOT%\apps\qt5\plugins
|
|
start "QGIS" /B "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassversion@.exe" %*
|