Development/Environment variables

This page is aimed to reference and document all the environment variables that are used in LibreOffice.

How to use environment variables
The exact syntax depends on the shell and the OS.

For Linux/bash, you can use  variable to use   UI using   command:

Another approach would be using it in the same command for running :

Another way would be passing the environment variable using, but it only works for bootstrap variables. You should note that not every variable is a bootstrap variable.

For Windows, one should use  in order to set the environment variable. For example, to get an RTL UI, one should use  in this way:

Another way would be passing the environment variable using  (only bootstrap variables).

Commands
In order to retrieve the list of environment variables, use the following command on the core folder (point and dollar sign because there are such vars):

When we get the list of environment variables, we want also to see where they are used. Here is the command that searches for files that use an environment variable: