Comment 10 for bug 834487

Revision history for this message
Michael Terry (mterry) wrote :

I was looking into this... liblightdm-gobject has its own support for listing and setting the keyboard layout. When you set the layout via that API, it goes and twiddles with xklavier.

So... We could go the normal route:
 * Enable the keyboard plugin of gnome-settings-daemon
 * Enable the indicator-application indicator
 * Blacklist all other application indicators (maybe by registering ourselves as an Approver for the indicator?)
 * Have the keyboard indicator not show some of its menu items when its in greeter mode (like don't show the keyboard preferences item)
 * We'd then want that indicator to instead of doing its normal thing, somehow send word back to us about what the user chose so we can call the right liblightdm-gobject method

That all seems to be going out of our way to make things hard. I propose that instead, we go the NIH route and write a small indicator to do this in a lightdm-native way. I *think* this would be a small amount of code and more self-contained. I'll start looking into this way.