1. Quit texstudio and open terminal
2. Run this command to create texstudio.sh file in the MacOS folder
touch /Applications/texstudio.app/Contents/MacOS/texstudio.sh
3. Run this command to open the newly created file
open /Applications/texstudio.app/Contents/MacOS/texstudio.sh
4. Paste the following script. Save and close the file.
#!/bin/sh
export PATH=$PATH:/usrtexbin
logger "`dirname \"$0\"`/texstudio"
exec "`dirname \"$0\"`/texstudio" $@
5. Run this command to make it executable
chmod +x /Applications/texstudio.app/Contents/MacOS/texstudio.sh
6. Run this command to open Info.plist
open /Applications/texstudio.app/Contents/Info.plist
7. Change the field "Executable file" from "texstudio" to "texstudio.sh"
8. Execute the following command to force update the LaunchService database
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -v -f /Applications/texstudio.app
9. Restart the application.
This solution is adapted from: http://kobi.nat.uni-magdeburg.de/patrick/pmwiki.php?n=Wiki.HOWTO-TexStudioOnMac-PathProblems
This solution is adapted from: http://kobi.nat.uni-magdeburg.de/patrick/pmwiki.php?n=Wiki.HOWTO-TexStudioOnMac-PathProblems
No comments:
Post a Comment