canonical / lightdm

Display Manager
GNU General Public License v3.0
827 stars 138 forks source link

lightdm get_layouts returns empty run under wayland #270

Open cycomanic opened 2 years ago

cycomanic commented 2 years ago

I've been trying to run lightdm under wayland (using a patched web-greeter and sway as compositor). Currently when asking for get_layouts via the g object api, I get an empty list because lightdm uses libxklavier which is X11 only for determining keyboard layout.

There is probably not an easy fix for this, as inputs are determined by the compositor, just wanted to put this here in case someone else runs into this.

robert-ancell commented 2 years ago

This should probably be added to the function documentation. It's an open question if Wayland support is desirable here - this is just a helper function as it is something commonly used in greeters. Wayland capable greeters might not need this if the toolkits make this easy enough.