Created
April 23, 2022 18:16
-
-
Save jsmestad/bed94dbaed8ce58df3655b3faff0d457 to your computer and use it in GitHub Desktop.
Fixes LIBRARY_PATH issues with macOS launch from Desktop on M1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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