From 61dd133fa3f5a98b00806fa07710db91d8818bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Mon, 28 Oct 2019 11:31:49 +0100 Subject: [PATCH] Indicate that --code can be used to execute the script --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index eba4a76..d7689d1 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,12 @@ specified with the `PYQGIS_STARTUP` environment variable. For example: $ PYQGIS_STARTUP=/home/user/pyqgis_startup.py qgis ``` +It can also be specified through the `--code` switch: + +```sh +$ qgis --code /home/user/pyqgis_startup.py +``` + QGIS will execute that script at startup time, and when switching profiles. The script is responsible for rewriting the user settings based on the constraints defined in the "user settings contraints" file.