Setting environment variables for scripts run by launchd?
Open your Script Editor(Launch Pad -> Other -> Script Editor) 
Type scripts like this:

do shell script "launchctl setenv autoBackupImagesInProgress false"


Use multiple lines if you want to set multiple variables.

Save this script as Application, open SystemPreferences → Users &amp; Groups → your user → Login Items and add your saved script.

To apply changes, logout your account and log in again.