You are not logged in.

#1 2023-11-29 22:20:47

Zosoled
Member
Registered: 2023-10-30
Posts: 17

[SOLVED] Firefox and Thunderbird ignore theme cursor

Linux arch 6.6.3-arch1-1
wayland 1.22.0-1
plasma-desktop 5.27.9-1
firefox 120.0-1
thunderbird 115.5.1-1

I have set a custom cursor theme "WhiteSur Cursors" downloaded and installed via System Settings > Appearance > Get New Cursors. This setting alone did not change the cursor used by Firefox and Thunderbird; they still show the Breeze cursors. I would like help getting these applications to show my theme cursors. To troubleshoot, I have tried the following:

Creating an index.theme file and symlinking its directory to the custom theme's cursor directory per the wiki:
https://wiki.archlinux.org/title/Cursor … _(Wayland)
https://wiki.archlinux.org/title/KDE#Pl … ncorrectly

[chris@arch ~]$ cat ~/.icons/default/index.theme
[Icon Theme]
Inherits=WhiteSur-cursors
[chris@arch ~]$ ls -l ~/.icons/default/cursors
lrwxrwxrwx 1 chris chris 41 Nov 28 01:35 /home/chris/.icons/default/cursors -> /usr/share/icons/WhiteSur-cursors/cursors

Using $XCURSOR_THEME (I did not set this env var myself, it seems to be managed elsewhere):
https://bbs.archlinux.org/viewtopic.php … 2#p1630132

[chris@arch ~]$ echo $XCURSOR_THEME
WhiteSur-cursors
[chris@arch ~]$ XCURSOR_THEME='WhiteSur-cursors' firefox  //This does not resolve the issue

Editing GTK3 settings to set gtk-cursor-theme-name (tried setting 'default', 'WhiteSur-cursors', and deleting the line entirely):
https://bbs.archlinux.org/viewtopic.php … 4#p1631854

[chris@arch ~]$ cat ~/.config/gtk-3.0/settings.ini
[Settings]
gtk-application-prefer-dark-theme=false
gtk-button-images=true
gtk-cursor-theme-name=WhiteSur-cursors
gtk-cursor-theme-size=24
gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=true
gtk-font-name=Noto Sans,  10
gtk-icon-theme-name=breeze
gtk-menu-images=true
gtk-modules=colorreload-gtk-module:appmenu-gtk-module
gtk-primary-button-warps-slider=true
gtk-shell-shows-menubar=1
gtk-sound-theme-name=ocean
gtk-toolbar-style=3
gtk-xft-dpi=147456

Editing gtkrc-2.0:
https://bbs.archlinux.org/viewtopic.php … 0#p1659500

[chris@arch ~]$ cat ~/.gtkrc-2.0
gtk-enable-animations=1
gtk-theme-name=""
gtk-primary-button-warps-slider=1
gtk-toolbar-style=3
gtk-menu-images=1
gtk-button-images=1
gtk-cursor-theme-size=24
gtk-cursor-theme-name="WhiteSur-cursors"
gtk-sound-theme-name="ocean"
gtk-icon-theme-name="breeze"
gtk-font-name="Noto Sans,  10"
gtk-modules=appmenu-gtk-module

Symlinking the 'default' cursor directory to the theme directory and modifying the index.theme file:
https://bbs.archlinux.org/viewtopic.php … 20#p531320

[chris@arch ~]$ ls -l /usr/share/icons/default
total 4
lrwxrwxrwx 1 root root 43 Nov 28 01:12 cursors -> /home/chris/.icons/WhiteSur-cursors/cursors
-rw-r--r-- 1 root root 39 Nov 28 01:13 index.theme
[chris@arch ~]$ cat /usr/share/icons/default/index.theme
[Icon Theme]
Inherits=WhiteSur-cursors

Setting cursor-theme in gsettings:
https://bugs.kde.org/show_bug.cgi?id=442839#c19

[chris@arch ~]$ find /usr/share/icons -type d -name "cursors"
/usr/share/icons/breeze_cursors/cursors
/usr/share/icons/WhiteSur-cursors/cursors
/usr/share/icons/Adwaita/cursors
/usr/share/icons/Breeze_Snow/cursors
[chris@arch ~]$ sudo gsettings get org.gnome.desktop.interface cursor-theme
'WhiteSur-cursors'

Last edited by Zosoled (2023-11-30 20:05:22)

Offline

#2 2023-11-30 08:22:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,630

Re: [SOLVED] Firefox and Thunderbird ignore theme cursor

Online

#3 2023-11-30 08:39:34

Zosoled
Member
Registered: 2023-10-30
Posts: 17

Re: [SOLVED] Firefox and Thunderbird ignore theme cursor

Native Wayland exhibits the cursor issue, i.e. I have set

MOZ_ENABLE_WAYLAND=1

Disabling that env var (i.e. set to 0) displays the theme cursor as desired, but I would prefer to find a solution that allows me to keep Wayland on if at all possible.

Offline

#4 2023-11-30 15:48:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,630

Re: [SOLVED] Firefox and Thunderbird ignore theme cursor

There're quite some google hits for FF/wayland behaving like this.
On a limb, your cursor theme might simply be incomplete: https://bbs.archlinux.org/viewtopic.php … 1#p2082761

Online

#5 2023-11-30 20:05:03

Zosoled
Member
Registered: 2023-10-30
Posts: 17

Re: [SOLVED] Firefox and Thunderbird ignore theme cursor

The WhiteSur-cursors theme was indeed missing some symlinks compared to breeze_cursors, and I fixed them, but I believe that was unrelated to the solution I actually discovered.

In my troubleshooting steps, I mentioned altering gsettings from this link: https://bugs.kde.org/show_bug.cgi?id=442839#c19

However, I omitted the fact that I ran gsettings as root with sudo, like the article recommended. The full console log should have looked like so:

[chris@arch ~]$ sudo gsettings get org.gnome.desktop.interface cursor-theme
'breeze_cursors'
[chris@arch ~]$ find /usr/share/icons -type d -name "cursors"
/usr/share/icons/breeze_cursors/cursors
/usr/share/icons/WhiteSur-cursors/cursors
/usr/share/icons/Adwaita/cursors
/usr/share/icons/Breeze_Snow/cursors
[chris@arch ~]$ sudo dbus-launch gsettings set org.gnome.desktop.interface cursor-theme 'WhiteSur-cursors'
[chris@arch ~]$ sudo gsettings get org.gnome.desktop.interface cursor-theme
'WhiteSur-cursors'

This changed gsettings for root. Checking the gsettings value again without sudo revealed that my user has a separate setting from root, so editing gsettings again as user resolved the issue.

[chris@arch ~]$ gsettings get org.gnome.desktop.interface cursor-theme
'breeze_cursors'
[chris@arch ~]$ gsettings set org.gnome.desktop.interface cursor-theme 'WhiteSur-cursors'
[chris@arch ~]$ gsettings get org.gnome.desktop.interface cursor-theme
'WhiteSur-cursors'

Added solution to wiki: https://wiki.archlinux.org/title/KDE#Fi … rsor_theme

Last edited by Zosoled (2023-11-30 20:53:57)

Offline

Board footer

Powered by FluxBB