Skip to content

Commit

Permalink
fix: Correctly detect all keyboard layouts
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
joshuamegnauth54 committed Nov 22, 2024
1 parent 39de757 commit ae3586f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pam-client = "0.5.0"
pwd.workspace = true
ron.workspace = true
shlex = "1.3.0"
xkb-data = "0.1"
xkb-data = "0.2"
xdg = "2.5.2"
#TODO: reduce features
tokio = { workspace = true, features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion src/greeter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ae3586f

Please sign in to comment.