You can use environment
variables to configure
PhotoStructure’s settings. The
file describes all of PhotoStructure’s settings, and how to change each with an
environment variable. This file will also be found in your root app directory
(from version 0.9.0 and later) if you’re using a PhotoStructure for
You can edit your
settings.tomland set environment variables.
Environment variables override any values found in
PhotoStructure does not read from the
PhotoStructure only reads from
Converting between settings names and environment variable names #
To avoid name-colliding with other software, all PhotoStructure environment
variables are prefixed with
PS_ and converted to
PS_LOG_LEVELenvironment variable overrides the
PS_LIBRARY_PATHenvironment variable overrides the
Caution: upgrades to your environment variables are not automatic #
When you upgrade to a new version of PhotoStructure, your prior
files are automatically migrated to contain the settings (and defaults) of the
new version, while retaining your custom configurations.
We can’t do this for environment variables, though, as we don’t know where your environment variables are coming from, as they can be set in many different ways.
If you’re using environment variables, it’s up to you to review our release notes and make suitable settings changes when you upgrade. We mark any settings that are deleted, renamed, or have changed semantics with a 💔.
It also might be helpful to look at differences between version tags on github.
How to set environment variables #
It’s up to you to copy, modify, and source the contents into the shell that starts your PhotoStructure process.
macOS and Linux #
Add environment variables to the relevant rc script for your shell. If you’re using
- Hit the
Windowskey, and type “environment”,
- select “Edit the system environment vairables” control panel,
- click the
Environment Variables...button in the bottom right, and
With docker, use the
docker run docker run --name photostructure --env PS_LOG_LEVEL=info ...
With docker-compose, use the environment configuration option:
... environment: - "PS_LOG_LEVEL=info" ...