Closed Bug 1709574 Opened 4 years ago Closed 4 years ago

[snap] Fallback cursor theme is ugly on Wayland

Categories

(Core :: Widget: Gtk, defect)

Firefox 88
Desktop
Linux
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: olivier, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0

Steps to reproduce:

I'm using the firefox snap on Ubuntu 21.04 in a Wayland session, and my desktop is configured to use a custom cursor theme (Oxy-blue) which isn't available in the gtk-common-themes provider snap.

Actual results:

The mouse cursor theme in use is a very ugly one, where hovering over a hyperlink doesn't even display a hand with a raised index finger.

Expected results:

As my custom cursor theme isn't present in gtk-common-theme, firefox should fall back to using the default DMZ-White theme (per https://gitlab.gnome.org/Community/Ubuntu/gtk-common-themes/-/merge_requests/26).

OS: Unspecified → Linux
Hardware: Unspecified → Desktop

It turns out it's not a firefox-specific problem. I can observe the same issue with the gedit and inkscape snaps on Wayland.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

I can confirm the problem isn't in firefox itself. In libwayland-cursor, wl_cursor_theme_load() calls xcursor_load_theme() with the current theme name (in my case "oxy-blue"), and if the resulting theme is empty, it calls load_default_theme(), which doesn't try to load the xcursor theme called "default", instead it loads a default hardcoded cursor theme (that ugly theme I'm seeing).

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.