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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/834487

Title:
  Add keyboard layout indicator to unity-greeter

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-greeter/+bug/834487/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to