Comment 3 for bug 307196

Revision history for this message
Elias K Gardner (zorkerz) wrote : Re: [Bug 307196] Re: ability to set default guest session keyboard layout

It is also possible to change the layout by modifying the file
/usr/share/gdm/guest-session/guest-session-setup.sh

Directions have been copied from here
https://answers.launchpad.net/ubuntu/+source/gdm-guest-session/+question/48970thanks
to David D Lowe.

"Open /usr/share/gdm/guest-session/guest-session-setup.sh as root:

sudo gedit /usr/share/gdm/guest-session/guest-session-setup.sh

Find the following lines:

su guest <<EOF
gconftool --set --type bool
/apps/gnome_settings_daemon/screensaver/start_screensaver False
gconftool --set --type bool
/apps/gnome_settings_daemon/plugins/screensaver/active False
EOF

Before the second EOF, add this line:

gconftool --set --type list --list-type string
/desktop/gnome/peripherals/keyboard/kbd/layouts [us,us"`echo "\tdvorak"`"]

This will make the default layout US Qwerty, with US Dvorak as a secondary
keyboard.

Hope it works!"