rofi
rofi copied to clipboard
[BUG] Rofi does not work in KDE Plasma 6 (Wayland)
Rofi version (rofi -v or git commit in case of build issue)
Version: 1.7.5+wayland3-3-g47ae31eb (makepkg)
Configuration
https://gist.github.com/LorenzoBettini/c80a1f9909f10ad7c7aead165c99d33f
Theme
https://gist.github.com/LorenzoBettini/9d245000f3242fab327c97fc6c3609fc
Timing report
No response
Launch command
rofi -show drun
Step to reproduce
- run rofi -show drun
- the rofi window appears but it does not react at typing or scrolling
- just insisting in double-clicking on the first item finally launches the application and closes the rofi window
Expected behavior
rofi should react to typing and scrolling and clicking
Actual behavior
rofi does not react to typing and scrolling and clicking
Additional information
When trying to interact with rofi the console from where I launched it shows:
(process:80565): Modes.Window-WARNING **: 17:04:57.454: Unable to initialize Window mode: Wayland compositor does not support wlr-foreign-toplevel-management protocol
(process:80565): libnkutils-bindings-CRITICAL **: 17:04:57.488: nk_bindings_seat_handle_key: assertion 'self->keymap != NULL' failed
(process:80565): libnkutils-bindings-CRITICAL **: 17:04:57.488: nk_bindings_seat_update_mask: assertion 'self->state != NULL' failed
(process:80565): libnkutils-bindings-CRITICAL **: 17:04:57.500: nk_bindings_seat_handle_key: assertion 'self->keymap != NULL' failed
(process:80565): libnkutils-bindings-CRITICAL **: 17:04:58.362: nk_bindings_seat_handle_key: assertion 'self->keymap != NULL' failed
(process:80565): libnkutils-bindings-CRITICAL **: 17:04:58.513: nk_bindings_seat_handle_key: assertion 'self->keymap != NULL' failed
Using wayland display server protocol
- [X] Yes, I use rofi with wayland support
I've checked if the issue exists in the latest stable release
- [X] Yes, I have checked the problem exists in the latest stable version
Works fine for me on arch 1.7.5.wayland3.r3.g47ae31eb-1, did you try to build it in a clean chroot? Any warnings about libnkutils during the build ?
I tried rebuilding it from scratch after clearing yay cache and it now works! Of course, it doesn't work for switching windows, but I guess that's known, isn't it? Sorry for the noise, I think we can close this one.
Actually it's still broken for me (Fedora 40 / Plasma 6). I've tried the system package that Fedora ships, as well as building myself from git (head of wayland branch), and I have temporarily removed my config so it's using builtin defaults. Observed behavior is that no keys work. I can double-click things, but that's it.
When run from a console, it spams a bunch of lines like this:
(process:44967): libnkutils-bindings-CRITICAL **: 01:58:48.134: nk_bindings_seat_update_mask: assertion 'self->state != NULL' failed
Interestingly, on a brand new VM (Fedora 40 + Plasma, fully updated) everything works with the system rofi-wayland package. But my other ("real") system doesn't work, even when the config is removed or it is run with -no-config
.
@abatkin I have the same issue Fedora 40 and no config. Doesn't take any input
@abatkin @carmen-gh
is this also the same issue??
rofi -show run
(process:10717): Wayland-ERROR **: 22:21:18.309: Rofi on wayland requires support for the layer shell protocol
fish: Job 1, 'rofi -show run' terminated by signal SIGTRAP (Trace or breakpoint trap)
i am using gnome and arch btw
@kaushiksahu18 gnome wayland is not supported as they have their do not expose a public protocol in the like of layer shell afaik. This is a separate issue
Same in nixpkgs-24.05, but in nixpkgs-23.11 (1.7.5+wayland2) can work.
Same on Fedora 40 as well.
Same issue on COSMIC on nixos
For the NixOS people, I upgraded to latest nixos-24.05 and rofi keyboard input started working again. Give it a shot. No idea what caused the assert to trigger in the first place, something about library versions I guess.