Skip to content

Commit

Permalink
[Fix sorin-ionescu#355] Do not set launchd environment variables
Browse files Browse the repository at this point in the history
Setting environment variables for launchd processes is unreliable.
Finder and all Finder launched programs have to be restarted for the
new environment variables to take effect.
  • Loading branch information
sorin-ionescu committed Dec 30, 2012
1 parent 6657617 commit 93b70c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
6 changes: 0 additions & 6 deletions modules/perl/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ if [[ "$OSTYPE" == darwin* ]]; then

unset perl_path
unset cache_file

# Set environment variables for launchd processes.
for env_var in PERL_LOCAL_LIB_ROOT PERL_MB_OPT PERL_MM_OPT PERL5LIB; do
launchctl setenv "$env_var" "${(P)env_var}" &!
done
unset env_var
fi

#
Expand Down
7 changes: 0 additions & 7 deletions runcoms/zlogin
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@
if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
zcompile "$zcompdump"
fi

# Set environment variables for launchd processes.
if [[ "$OSTYPE" == darwin* ]]; then
for env_var in PATH MANPATH; do
launchctl setenv "$env_var" "${(P)env_var}"
done
fi
} &!

# Print a random, hopefully interesting, adage.
Expand Down

0 comments on commit 93b70c7

Please sign in to comment.