firefox on sway does not show hand when hovering over links: "Unable to load hand2 from the cursor theme"
I'm running firefox on sway
, which uses wayland. Recently I noticed that the mouse cursor does not change into a hand when hovering over links. I'm not sure when the hand started missing.
The terminal gives this warning:
$ firefox
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libpci missing (t=0.219549) [GFX1-]: glxtest: libpci missing
console.error: ({})
JavaScript error: resource://gre/modules/XULStore.sys.mjs, line 60: Error: Can't find profile directory.
[...]
Gdk-Message: 09:16:12.941: Unable to load hand2 from the cursor theme
The last message (about hand2
) repeats every time I hover over a link. The first two messages (about libpci
and console
) are probably not related. The middle one (about profile
) repeats several times in the ellipsis and might be related.
Relevant environment:
$ env | grep -i wayl
XDG_SESSION_TYPE=wayland
WAYLAND_DISPLAY=wayland-1
My solution was to install the adwaita-icon-theme
package.
Relevant links:
- https://github.com/NixOS/nixpkgs/issues/66093#issuecomment-1046311312 with the solution I opted for
- https://bugzilla.mozilla.org/show_bug.cgi?id=1699942 with various possible fixes
I'm not sure whether this should be considered a bug. I think it is a bug, because a browser should by default be able to show a hand.
I can't really judge what would be a good solution. The simplest would be to add adwaita-icon-theme
as a dependency of firefox
(or sway
?), but the Nix link above states that "drags in all of gnome", which might be undesirable.
The problem is fixed for me, so I'm personally fine with keeping everything as-is for now. In a way, the main purpose of writing this issue is to ensure others can find this solution as well.