l4l / yofi

yofi is a minimalistic menu for wayland
https://crates.io/crates/yofi
MIT License
375 stars 21 forks source link

Crash: failed to initialize fontconfig #137

Closed hissssst closed 1 year ago

hissssst commented 1 year ago
$ nix shell github:l4l/yofi
$ yofi
[2023-01-30][18:51:43][yofi::input][ERROR] failed to map keyboard on seat seat0: XKBNotFound
thread 'main' panicked at 'failed to initialize fontconfig', src/font/fdue.rs:15:36
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2023-01-30][18:51:43][yofi][ERROR] panic: failed to initialize fontconfig
hissssst commented 1 year ago

NixOS, sway

$ env
WAYLAND_DISPLAY=wayland-1
Aleksanaa commented 1 year ago

Also for me, nixos with hyprland

l4l commented 1 year ago

Yeah, nixpkg seems to be broken after #129, the fontconfig dependency need to be specified I guess. Contribution is really welcome here as I don't really use it myself

Aleksanaa commented 1 year ago

Yeah, nixpkg seems to be broken after #129, the fontconfig dependency need to be specified I guess. Contribution is really welcome here as I don't really use it myself

Seems that we need something like symlinkJoin.

Aleksanaa commented 1 year ago

I've added --prefix LD_LIBRARY_PATH : ${fontconfig.lib}/lib to wrapProgram and it is recognized but I get thread 'main' panicked at 'cannot load default font: The face index is larger than the number of faces in the font.', src/font/fdue.rs:122:14

figsoda commented 1 year ago

https://github.com/l4l/yofi/pull/138 fixes the issue for me