Skip to content

Instantly share code, notes, and snippets.

@jsmestad
Created April 23, 2022 18:16
Show Gist options
  • Save jsmestad/bed94dbaed8ce58df3655b3faff0d457 to your computer and use it in GitHub Desktop.
Save jsmestad/bed94dbaed8ce58df3655b3faff0d457 to your computer and use it in GitHub Desktop.
Fixes LIBRARY_PATH issues with macOS launch from Desktop on M1
#!/bin/bash
/usr/libexec/PlistBuddy -c "Add :LSEnvironment dict" `brew --prefix --installed emacs-plus@29`/Emacs.app/Contents/Info.plist
/usr/libexec/PlistBuddy -c "Add :LSEnvironment:PATH string" `brew --prefix --installed emacs-plus@29`/Emacs.app/Contents/Info.plist
/usr/libexec/PlistBuddy -c "Set :LSEnvironment:PATH $(echo "$PATH")" `brew --prefix --installed emacs-plus@29`/Emacs.app/Contents/Info.plist
/usr/libexec/PlistBuddy -c "Print :LSEnvironment" `brew --prefix --installed emacs-plus@29`/Emacs.app/Contents/Info.plist
touch `brew --prefix --installed emacs-plus@29`/Emacs.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment