fix: Correctly detect all keyboard layouts

Closes: #1160

See these for more info:
* pop-os/cosmic-applets#725
* lilyinstarlight/nixos-cosmic#484
* lilyinstarlight/nixos-cosmic#74

Also, thanks to @Thatoo for all of the help in figuring this out!
This commit is contained in:
Josh Megnauth 2024-11-22 02:24:38 -05:00
parent 39de757846
commit ae3586fa14
No known key found for this signature in database
GPG key ID: 70813183462EFAD3
3 changed files with 4 additions and 4 deletions

View file

@ -282,7 +282,7 @@ pub fn main() -> Result<(), Box<dyn Error>> {
sessions
};
let layouts_opt = match xkb_data::keyboard_layouts() {
let layouts_opt = match xkb_data::all_keyboard_layouts() {
Ok(ok) => Some(Arc::new(ok)),
Err(err) => {
log::warn!("failed to load keyboard layouts: {}", err);