com.apple.HIToolbox.plist keyboard localization via config profile?

dgreening
Valued Contributor II

Hey guys,

I am working on moving our localization process over from User Template modification to configuration profile based. I am having a hard time getting additional keyboards to show up in Keyboard - Input Sources. Here is the contents of the com.apple.HIToolbox.plist which I am importing into a custom configuration profile:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>AppleCurrentKeyboardLayoutInputSourceID</key>
    <string>com.apple.keylayout.German</string>
    <key>AppleEnabledInputSources</key>
    <array>
        <dict>
            <key>InputSourceKind</key>
            <string>Keyboard Layout</string>
            <key>KeyboardLayout ID</key>
            <integer>0</integer>
            <key>KeyboardLayout Name</key>
            <string>U.S.</string>
        </dict>
        <dict>
            <key>InputSourceKind</key>
            <string>Keyboard Layout</string>
            <key>KeyboardLayout ID</key>
            <integer>3</integer>
            <key>KeyboardLayout Name</key>
            <string>German</string>
        </dict>
    </array>
    <key>AppleInputSourceHistory</key>
    <array>
        <dict>
            <key>InputSourceKind</key>
            <string>Keyboard Layout</string>
            <key>KeyboardLayout ID</key>
            <integer>3</integer>
            <key>KeyboardLayout Name</key>
            <string>German</string>
        </dict>
        <dict>
            <key>InputSourceKind</key>
            <string>Keyboard Layout</string>
            <key>KeyboardLayout ID</key>
            <integer>0</integer>
            <key>KeyboardLayout Name</key>
            <string>U.S.</string>
        </dict>
    </array>
    <key>AppleSelectedInputSources</key>
    <array>
        <dict>
            <key>InputSourceKind</key>
            <string>Keyboard Layout</string>
            <key>KeyboardLayout ID</key>
            <integer>3</integer>
            <key>KeyboardLayout Name</key>
            <string>German</string>
        </dict>
    </array>
</dict>
</plist>

I am setting this at the Computer Level, and can't get the German keyboard to show up. Any ideas?

2 REPLIES 2

davidacland
Honored Contributor II
Honored Contributor II

Hi, the xml above looks like a plist file rather than a config profile?

Here's a link to our UK localisation config profile that's been working well for us: https://github.com/amsysuk/public_config_profiles/blob/master/LocalisetoUK.mobileconfig

Hope that helps.

dgreening
Valued Contributor II

Yeah, I converted that plist into XML before I uploaded it to the JSS. I'll take a look at your config profile and report back. Thanks!!