Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

In Lion OSX, changing the keyboard layout "Input Sources" setting in the "Language & Text" only changes the setting for the current user. Is there a way to populate the setting to all existing, and also all future new users to the same set of language keyboard layouts?

share|improve this question
add comment

1 Answer 1

The default input source is set in ~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist (where * is system_profiler | grep 'Hardware UUID').

You could either copy the file to other acccounts: sudo cp ~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist ~/Users/username/Library/Preferences/ByHost/.

Or add it to the User Template directory so that it will be included by default on new accounts: d=/System/Library/User\ Template/English.lproj/Library/Preferences/ByHost; sudo mkdir -p "$d"; sudo cp ~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist "$d".

Note that the UUID will have to be changed if the file is copied to another computer.

You can view or edit the property list in a text editor by converting it from binary to XML: f=~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist; plutil -convert xml1 $f; open $f -a TextEdit.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.