From 67c252358955084f4bebc5f8888a36d26dc66c21 Mon Sep 17 00:00:00 2001 From: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:23:25 -0400 Subject: [PATCH] docs: add example for plist (#9294) * add-example-for-plist * ampersands --- .../Configuration/environment-variables.mdx | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/docs/docs/Configuration/environment-variables.mdx b/docs/docs/Configuration/environment-variables.mdx index 245e35b27..865efe83a 100644 --- a/docs/docs/Configuration/environment-variables.mdx +++ b/docs/docs/Configuration/environment-variables.mdx @@ -383,29 +383,31 @@ To make environment variables available to GUI apps on macOS, you need to use `l 3. Add the following content to `dev.langflow.env.plist`, and then add, change, or remove Langflow environment variables as needed for your configuration. - This example sets the `LANGFLOW_CONFIG_DIR` environment variable for all GUI apps launched from the macOS GUI. + This example sets multiple environmental variables for all GUI apps launched from the macOS GUI. ```xml - - - - - Label - dev.langflow.env - ProgramArguments - - launchctl - setenv - LANGFLOW_CONFIG_DIR - /Users/your_user/custom/config - - RunAtLoad - - - + + + + + Label + dev.langflow.env + ProgramArguments + + /bin/sh + -c + + launchctl setenv LANGFLOW_CONFIG_DIR /Users/your_user/custom/config && + launchctl setenv LANGFLOW_PORT 7860 && + launchctl setenv LANGFLOW_HOST localhost && + launchctl setenv ARIZE_API_KEY ak-... + + + RunAtLoad + + + ``` - 4. Load the file with `launchctl`: ```bash