From 5a245850f079cd48e867670412d10f3d213a957e Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sun, 30 Dec 2012 18:15:43 -0500 Subject: [PATCH] [Fix #355] Do not set launchd environment variables 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. --- modules/perl/init.zsh | 6 ------ runcoms/zlogin | 7 ------- 2 files changed, 13 deletions(-) diff --git a/modules/perl/init.zsh b/modules/perl/init.zsh index 6270128..8ba873d 100644 --- a/modules/perl/init.zsh +++ b/modules/perl/init.zsh @@ -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 # diff --git a/runcoms/zlogin b/runcoms/zlogin index e27e233..32f28cf 100644 --- a/runcoms/zlogin +++ b/runcoms/zlogin @@ -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.