From f7072abe15016183fe59c53d788fdac310f03969 Mon Sep 17 00:00:00 2001 From: Grégoire Duchêne Date: Sat, 15 Jan 2022 17:43:24 +0000 Subject: darwin/env.sh: Set LSEnvironment using JSON --- dotfiles-darwin/bin/env.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dotfiles-darwin/bin') diff --git a/dotfiles-darwin/bin/env.sh b/dotfiles-darwin/bin/env.sh index 7a9d7e5..d291ef9 100755 --- a/dotfiles-darwin/bin/env.sh +++ b/dotfiles-darwin/bin/env.sh @@ -9,7 +9,6 @@ done # make it work in Emacs only. Yep, it’s pretty bad. local plist=~/Applications/Emacs.app/Contents/Info.plist if [[ -f ${plist} ]]; then - plutil -replace LSEnvironment -dictionary ${plist} - plutil -insert LSEnvironment.PATH -string "${PATH}" ${plist} + plutil -replace LSEnvironment -json '{"PATH": "'${PATH}'"}' ${plist} /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f ${plist:h:h} fi -- cgit v1.2.3-70-g09d2