Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch from dir with spaces #5

Open
Rjialceky opened this issue Nov 5, 2023 · 0 comments
Open

Launch from dir with spaces #5

Rjialceky opened this issue Nov 5, 2023 · 0 comments

Comments

@Rjialceky
Copy link

Add quotes around references to %OSGEO4W_ROOT%\bin\qgis*.bat to enable launch when that path may contain spaces. For example, if %OSGEO4W_ROOT% is "%userprofile%\Program Files", required change to qgis-ltr-grass.bat line:

From:
IF "%1" == "" (start "QGIS" /B %OSGEO4W_ROOT%\bin\qgis-ltr.bat --profiles-path %DRV_LTR%\qgisconfig) ELSE (start "QGIS" /B %OSGEO4W_ROOT%\bin\qgis-ltr.bat --profiles-path %DRV_LTR%\qgisconfig --project %1)

To:
IF "%1" == "" (start "QGIS" /B "%OSGEO4W_ROOT%\bin\qgis-ltr.bat" --profiles-path %DRV_LTR%\qgisconfig) ELSE (start "QGIS" /B "%OSGEO4W_ROOT%\bin\qgis-ltr.bat" --profiles-path %DRV_LTR%\qgisconfig --project %1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant