You are not logged in.

#1 2024-02-24 19:43:18

Potomac
Member
Registered: 2011-12-25
Posts: 528

Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

Hello,

I use plasma, since the update of firefox (123.0-1) I notice that firefox doesn't respect the cursor theme I set in plasma settings (oxygen white),
inside firefox GUI it's Adwaita cursor theme that is used (black cursor) and not oxygen white.

I checked gtk3.0 config file : ~/.config/gtk-3.0/settings.ini

and I can see that the cursor theme is correctly configured :

gtk-cursor-theme-name=Oxygen_White

And I checked XCURSOR_THEME in the console :

$ echo $XCURSOR_THEME
Oxygen_White

I started firefox with a new profile but the bug is still here, do you have also the same problem ?

Thanks.

Last edited by Potomac (2024-02-24 19:53:41)

Offline

#2 2024-02-24 20:12:24

RogerRabbit
Member
Registered: 2022-12-18
Posts: 63

Re: Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

I'm using Gnome, but as far as I know, Plasma moved to Wayland as well, this might be your issue, by default Firefox does run on the legacy x server, you need to set en env variable to force it to use wayland :

Try using this command to add the environment variable :

 echo MOZ_ENABLE_WAYLAND=1 | sudo tee -a /etc/environment

You then need to logoff/logon for the environment variable to be visible by all applications (firefox).

Offline

#3 2024-02-24 20:17:11

dab9966
Member
Registered: 2023-12-05
Posts: 33

Re: Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

From KDE Plasma v6 onwards, it should be Wayland https://forum.endeavouros.com/t/kde-dro … -that-case

Last edited by dab9966 (2024-02-24 20:19:45)

Offline

#4 2024-02-24 20:19:09

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

It's only in firefox I have this cursor theme problem, and only in the 123 version, If I downgrade firefox to the previous then there is no bug for the cursor theme,

others application (gimp, thunderbird, kde applications) don't have this problem.

I tried the "MOZ_ENABLE_WAYLAND=1" in /etc/environment but it doesn't solve the problem.

Last edited by Potomac (2024-02-24 20:24:13)

Offline

#5 2024-02-24 20:23:57

RogerRabbit
Member
Registered: 2022-12-18
Posts: 63

Re: Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

This was worth a try, if you're on Wayland it's still goot to keep this setting, Firefox is smoother while on Wayland when it has this setting.

Offline

#6 2024-02-24 20:25:58

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

The bug is confirmed by other users :
https://bugzilla.mozilla.org/show_bug.cgi?id=1881143
https://bugzilla.mozilla.org/show_bug.cgi?id=1876366

Last edited by Potomac (2024-02-24 20:29:11)

Offline

#7 2024-02-24 21:15:28

seth
Member
Registered: 2012-09-03
Posts: 52,454

Re: Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

You could give https://bbs.archlinux.org/viewtopic.php … 1#p2082761 a try, no idea whether that's the problem but from superficially skimming the bug, it might be.

Last edited by seth (2024-02-26 13:16:08)

Offline

#8 2024-02-24 21:37:18

Potomac
Member
Registered: 2011-12-25
Posts: 528

Re: Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

I notice that the problem doesn't occur with some cursor themes,

for example if I select "breeze" cursor theme in plasma settings then all is ok with firefox.

Offline

#9 2024-02-24 21:39:42

seth
Member
Registered: 2012-09-03
Posts: 52,454

Re: Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

The bug talks about symlink and pointer and hand and css names… try the script and whether it completes anything in your preferred theme - then the impact on FF (you might have to restart that to get rid of caches)

Offline

#10 2024-02-25 15:16:05

Bogart
Member
From: Madrid, Spain
Registered: 2005-06-22
Posts: 272

Re: Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

I have the same problem. Using KDE on X11, cursor theme set to "Oxygen White", but in Firefox now it shows the default cursor as "Adwaita". Strangely, it does respect the "Oxygen White" theme for the non-default states, like when I hover over a link or over text. I didn't find a workaround for now, so let's see if there are updates in the Firefox bugzilla reports.

Offline

#11 2024-02-25 15:36:29

seth
Member
Registered: 2012-09-03
Posts: 52,454

Re: Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

Has anyone tried to just make sure that the theme is (more) complete wrt. the flurry of different names used for the different cursors?

Offline

#12 2024-02-26 00:22:19

Bogart
Member
From: Madrid, Spain
Registered: 2005-06-22
Posts: 272

Re: Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

seth wrote:

Has anyone tried to just make sure that the theme is (more) complete wrt. the flurry of different names used for the different cursors?

Yes, that was the problem. "Oxygen White" did not have a cursor icon named "default"! Weird, because "default" should be the first cursor icon that one should have.

So as a workaround, I did (as root):

cp /usr/share/icons/Oxygen_White/cursors/left_ptr /usr/share/icons/Oxygen_White/cursors/default

I think the icon named "left_ptr" is the one that was being used as default, so I copied that one to a file named "default" and after login out and in again it now works.

Thanks for the suggestion!

Offline

#13 2024-02-26 08:26:58

seth
Member
Registered: 2012-09-03
Posts: 52,454

Re: Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

The script I linked in https://bbs.archlinux.org/viewtopic.php … 3#p2152963 should™ be  able to heristically complete any cursor theme or warn you if a cursor seems completely missing.

Offline

#14 2024-02-26 10:54:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,923

Re: Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

As a heads up the link you linked there goes to the networkmanager ip assignment bug thread, you likely meant to link somewhere else tongue

Offline

#15 2024-02-26 13:17:22

seth
Member
Registered: 2012-09-03
Posts: 52,454

Re: Firefox 123.0-1 doesn't respect my cursor theme (oxygen white)

Whooppala…
https://bbs.archlinux.org/viewtopic.php … 1#p2082761 - fixed the previous post as well.
Thanks V1del.

And a convenient copy, just to be sure…

#!/bin/bash

# unassigned yet
# X_cursor
# color-picker
# crossed_circle
# pencil
# pirate
# plus


 L_PTR="left_ptr arrow dnd-none op_left_arrow"
 CROSS="cross diamond-cross cross-reverse crosshair"
UP_ARR="up_arrow center_ptr sb_up_arrow centre_ptr"
 WAIT="wait watch progress"
 IBEAM="ibeam xterm text"
 FLEUR="fleur size_all"
 HAND2="pointing_hand pointer hand hand1 hand2 e29285e634086352946a0e7090d73106 9d800788f1b08800ae810202380a0822"
SZ_VER="size_ver sb_v_double_arrow v_double_arrow n-resize s-resize col-resize top_side bottom_side base_arrow_up base_arrow_down based_arrow_down based_arrow_up 00008160000006810000408080010102"
SZ_HOR="size_hor sb_h_double_arrow h_double_arrow e-resize w-resize row-resize right_side left_side 028006030e0e7ebffc7f7070c0600140"
SZ_BDG="size_bdiag fd_double_arrow bottom_left_corner top_right_corner fcf1c3c7cd4491d801f1e1c78f100000"
SZ_FDG="size_fdiag bd_double_arrow bottom_right_corner top_left_corner c7088f0f3e6c8088236ef8e1e3e70000"
WHATST="whats_this left_ptr_help help question_arrow dnd-ask d9ce0ab605698f320427677b458ad60b 5c6cd98b3f3ebcb1f9c7f1c204630408 "
SPLT_H="split_h 14fef782d02440884392942c11205230 size_hor"
SPLT_V="split_v 2870a09082c103050810ffdffffe0204 size_ver"
FORBID="forbidden circle dnd-no-drop not-allowed 03b6e0fcb3499374a867c041f52298f0"
LPWTCH="left_ptr_watch half-busy 3ecb610c1bf2410f44200f48c40d3599 00000000000000020006000e7e9ffc3f 08e8e1c95fe2fc01f976f1e063a24ccd"
O_HAND="openhand all_scroll all-scroll 9141b49c8149039304290b508d208c40"
C_HAND="closedhand 05e88622050804100c20044008402080 4498f0e0c1937ffe01fd06f973665830 9081237383d90e509aa00f00170e968f fcf21c00b30f7e3f83fe0dfd12e71cff"
 ALIAS="dnd-link link alias 3085a0e285430894940527032f8b26df 640fb0e74195791501fd1ed57b41487f a2a266d0498c3104214a47bd64ab0fc8"
  COPY="dnd-copy copy 1081e37283d90000800003c07f3ef6bf 6407b0e94181790501fd1e167b474872 b66166c04f8c3109214a4fbd64a50fc8"
  MOVE="dnd-move move"

SHAPES="L_PTR CROSS UP_ARR WAIT IBEAM FLEUR HAND2 SZ_VER SZ_HOR SZ_BDG SZ_FDG WHATST SPLT_H SPLT_V FORBID LPWTCH O_HAND C_HAND ALIAS COPY MOVE"

fix_false_group() {
    if [ -L "$1" ]; then
        rm "$1" # symlink, just get rid of it and have the script restore it properly
    elif [ -e "$1" ]; then
        # file exists and is a real file. remove all false symlinks to it
        for ALTERNATIVE in $2; do
            if [ -L "$ALTERNATIVE" ]; then
                TARGET="$(realpath $ALTERNATIVE)"
                if [ "$(basename $TARGET)" = "$1" ]; then
                    rm "$ALTERNATIVE"
                fi
            fi
        done
    fi
}

fix_cursors()  {
    # those two have been swapped in KDE and falsely linked by v0.1 of this script
    # ensure they do NOT point into the wrong group (2nd parameter)
    fix_false_group "fcf1c3c7cd4491d801f1e1c78f100000" "$SZ_FDG"
    fix_false_group "c7088f0f3e6c8088236ef8e1e3e70000" "$SZ_BDG"
    if [ "$1" = "override" ]; then
        for name in *; do
            if [ -L "$name" ]; then
                rm "$name"
            fi
        done
    fi
    for GROUP in $SHAPES; do
        eval SHAPE='$'$GROUP
        echo $SHAPE
        unset PRESENT
        for ALTERNATIVE in $SHAPE; do
            if [ -e $ALTERNATIVE ]; then
                PRESENT=$ALTERNATIVE
                break
            fi
        done
        if [ -z $PRESENT ]; then
            echo "*** WARNING *** No usable cursor for $GROUP"
            continue
        else
            echo $PRESENT
        fi
        for ALTERNATIVE in $SHAPE; do
            if [ ! -e $ALTERNATIVE ]; then
                ln -s $PRESENT $ALTERNATIVE
            fi
        done
    done
}

if [ "$(basename $PWD)" != "cursors" ]; then
    cd ~/.icons
    for name in *; do
        if [ -d "$name/cursors" ]; then
            echo "Fixing theme: $name"
            pushd "$name/cursors" > /dev/null
            fix_cursors $1
            popd > /dev/null
        fi
    done
else
    fix_cursors $1
fi

Offline

Board footer

Powered by FluxBB