When I set an environment variable
launchctl setenv FOO test
I can fetch the value by
launchctl getenv FOO
wh
As I wrote in section Issues / problems here in order your env variables were correctly taken by applications after system reboot you will need:
This happens due to Apple denies explicit ordering of loaded services, so env variables are registered in parallel with processing of the "reopen queue".