From adce958d5c298f2fc9b6ad38fe76614d30a6ff2f Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Fri, 19 Feb 2021 15:35:51 +0100 Subject: [PATCH] Doc: Describe the global setting for system environment Used when determining the build and run environment and the environment for running external tools. Task-number: QTCREATORBUG-25162 Change-Id: I6ddf4952bed5ae9190b65bbac8f0c17404be0538 Reviewed-by: Eike Ziller --- doc/qtcreator/src/howto/creator-external-tools.qdoc | 7 +++++++ .../creator-projects-settings-environment.qdoc | 5 +++++ .../creator-only/creator-projects-settings-run.qdoc | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/qtcreator/src/howto/creator-external-tools.qdoc b/doc/qtcreator/src/howto/creator-external-tools.qdoc index 9032cf7df41..ebae6a113af 100644 --- a/doc/qtcreator/src/howto/creator-external-tools.qdoc +++ b/doc/qtcreator/src/howto/creator-external-tools.qdoc @@ -159,6 +159,13 @@ see \l{Batch Editing}. \endif + + To globally change the system environment from the one in which + \QC is started, select \uicontrol Tools > \uicontrol Options > + \uicontrol Environment > \uicontrol System, and then select + \uicontrol Change in the \uicontrol Environment field. For more + information, see \l{Specifying Environment Settings}. + \li Select the \uicontrol {Modifies current document} check box to make sure that if the current document is modified by the tool, it is saved before the tool is run and reloaded after the tool finishes. diff --git a/doc/qtcreator/src/projects/creator-only/creator-projects-settings-environment.qdoc b/doc/qtcreator/src/projects/creator-only/creator-projects-settings-environment.qdoc index f038e900054..e3209835c01 100644 --- a/doc/qtcreator/src/projects/creator-only/creator-projects-settings-environment.qdoc +++ b/doc/qtcreator/src/projects/creator-only/creator-projects-settings-environment.qdoc @@ -40,6 +40,11 @@ existing environment variables or add, reset and unset new variables based on your project requirements. + To globally change the system environment from the one in which + \QC is started, select \uicontrol Tools > \uicontrol Options > + \uicontrol Environment > \uicontrol System, and then select + \uicontrol Change in the \uicontrol Environment field. + In addition, you can specify custom environment variables in the \uicontrol {Project Settings} > \uicontrol Environment settings. They are added to all build environments. The final build environment diff --git a/doc/qtcreator/src/projects/creator-only/creator-projects-settings-run.qdoc b/doc/qtcreator/src/projects/creator-only/creator-projects-settings-run.qdoc index 54ab836e6f5..67d38202a9a 100644 --- a/doc/qtcreator/src/projects/creator-only/creator-projects-settings-run.qdoc +++ b/doc/qtcreator/src/projects/creator-only/creator-projects-settings-run.qdoc @@ -103,7 +103,7 @@ When running on the desktop, the \uicontrol {Build Environment} is used by default, but you can also use the \uicontrol {System Environment} without the additions made to the build environment. For more information, see - \l {Build Environment}. + \l {Build Environment} and \l{Specifying Environment Settings}. To run in a clean system environment, select \uicontrol {Clean Environment}.