Skip to content

How to set environment variables in Autograph

Environment variables are values passed by you to the application when starting it. Once the application is started, the variable cannot be changed until the application is restarted again. Methods to set environment variables to application differ on each operating system. In order to provide a common, reliable and easy way to set environment variables, Autograph proposes a unique way to declare variables.

Create a Autograph.env file (must be named exactly like this) and place it either:

  • On Windows, in C:\Users\<your_user>\Documents\LeftAngle\Autograph
  • On macOS, in /Users/<your_user>/LeftAngle/Autograph
  • On Linux, in /home/<your_user/LeftAngle/Autograph

Each line of the file can declare 1 environment variable. For example:

AG_UI_FONT_FAMILY=Fira Sans
AG_UI_FONT_STYLE=Medium

In this example, the following 2 variables above override the font used by Autograph in the user interface to the "Fira Sans" font.