how to change system default setting by modify source code (or script)?