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?
MacOS – How to set “Input Sources” for all users at the same time
input-sourcemacospreferencesserveradminsettings
Related Question
- MacOS – OS X 10.9: Deleting Keyboard Input Sources
- MacOS – Sierra 10.12.3 set default keyboard language input for whole OS
- MacOS – Custom shortcut for switching input sources in macOS High Sierra
- MacOS – control the order of keyboard layouts in the system menu
- Using CapsLock to switch between ABC and custom keyboard layout
- Change the default keyboard input when logging into macOS Big Sur
- MacOS – Disable mouse interference in input source overlay when switching
Best Answer
The default input source is set in
~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist
(where*
issystem_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
.