Cannot modify com.unity3d.UnityEditor5.x.plist via command line
I'm trying to modify the com.unity3d.UnityEditor5.x.plist that is under ~/Library/Preferences/ via command line to set up my cache server before opening unity.
I need to: - set CacheServerMode to 0 (local cache sever) - set LocalCacheServerCustomPath to 1 (custom local cache sever) - set LocalCacheServerPath to my-cache-path
The command to modify the plist key values i used
defaults write $PLIST_PATH kAutoRefresh "0"
//This would change Auto Refresh to false
defaults read $PLIST_PATH
The changes seems to be applying but when i open Unity the values are changed. Is it possible to modify it or unity loads another plist every time?
Answer by netding · Mar 20, 2018 at 07:19 PM
it seems that if you chown and chmod the files even when you su root in terminal it doesn't seem to apply the permissions. You have to manually login to the root account on the system and edit the changes from there. Then of course as mentioned above restart the computer when you apply changes to the /Library/Preferences .plist.
Answer by BojanJC · Nov 15, 2021 at 09:16 PM
defaults write $PLIST_PATH kAutoRefresh -int 0
kAutoRefresh
is a number, so you need to specify -int
before the number.
Your answer
Follow this Question
Related Questions
No editor test result file is created 0 Answers
Top Notch Specs, Poor Performance on the Editor 0 Answers
Thin black lines between meshes 1 Answer
CTR+Z suddenly stops working in unity editor 0 Answers
Starting new 3D project in unity 0 Answers