diff --git a/linux_app_launcher.py b/linux_app_launcher.py index 274ef8b82b..6dc1518370 100644 --- a/linux_app_launcher.py +++ b/linux_app_launcher.py @@ -28,6 +28,12 @@ def main(input_json_path): with open(input_json_path, "r") as stream: data = json.load(stream) + # Change environment variables + env = data.get("env") or {} + for key, value in env.items(): + os.environ[key] = value + + # Prepare launch arguments args = data["args"] if isinstance(args, list): args = subprocess.list2cmdline(args)