#!/bin/sh # gdm assumes that by default all people use only one keyboard layout. # That's not valid for many countries. # gdm should do what this script does instead: # it should get the default system values from /etc/default/console-setup # and it should write them to gconf:/desktop/gnome/peripherals/keyboard/kbd. # Read the system-wide XKBMODEL, XKBLAYOUT, XKBVARIANT and XKBOPTIONS . /etc/default/console-setup # Delete all broken gdm settings gconftool-2 --recursive-unset /desktop/gnome/peripherals/keyboard/kbd # Apply the system default settings to the gconf keys gconftool-2 --type list --list-type string --set /desktop/gnome/peripherals/keyboard/kbd/layouts "[$XKBLAYOUT]" gconftool-2 --type string --set /desktop/gnome/peripherals/keyboard/kbd/model "$XKBMODEL" gconftool-2 --type list --list-type string --set /desktop/gnome/peripherals/keyboard/kbd/options "[$XKBOPTIONS]" # XKBVARIANT can't be applied due to console-setup/gdm differences in layout representation