Applications depending on XCURSOR_SIZE and XCURSOR_THEME don't use the correct cursor size and theme
Affected version
- Ubuntu 22.04
- Gnome 42.0
- Wayland
Bug summary
Some applications (like the very popular Telegram Desktop) don't use the correct mouse cursor theme on Gnome, and especially on High DPI displays, not the correct size. This is because they depend on the XCURSOR_SIZE and XCURSOR_THEME environment variables, which are not set by Gnome (while on other desktop environments, they are).
A way to ensure Gnome users have a more flawless experience with applications offered in Software/Flathub, would be setting these environment variables.
I'm not sure whether gnome-shell is the correct project for this btw., so feel free to move this issue.
Steps to reproduce
- Enable High DPI scaling (then it's more obviuous)
- Install Telegram Desktop from Flathub
- Start it
- Look at the cursor inside the Telegram window
What happened
Cursor is too small and uses the wrong theme, because XCURSOR_SIZE and XCURSOR_THEME are not set
What did you expect to happen
XCURSOR_SIZE and XCURSOR_THEME being set, so Telegram uses the correct theme and size