Why can't I use `launchctl setenv` from `tmux`? If I'm running within tmux and I try to update an environment variable with launchctl, I see an error like this:

$ launchctl setenv GIT_SSH /opt/local/bin/ssh
Not privileged to set domain environment.


But it works fine from outside of tmux... any idea why that is, or if there's any sort of workaround?
Running tmux as root is probably not a good idea. Someone has created a solution and explanation:

https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard

After configuring tmux to use reattach-to-user-namespace you can use launchctl setenv as yourself within tmux.