[SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
- Level 3
- Posts: 172
- Joined: Thu Jul 12, 2018 3:09 pm
[SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
Hey guys! I installed 21.1 today and am really happy with it so far. Just one minor cosmetic thing I noticed: When running Qt5 apps, like qt5ct or VLC Media Player, the mouse cursor changes to some other default than whatever I choose through the Linux Mint Themes app. Any idea why Qt5 apps no longer adapt the system's cursor theme?
Last edited by LockBot on Tue Jun 27, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
-
- Level 3
- Posts: 172
- Joined: Thu Jul 12, 2018 3:09 pm
Re: LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
Seems like I found the solution. Since I kept my .icons directory when reinstalling Linux Mint, there was a subfolder in there called, "default" with an index.theme inside that had an instruction to inherit a theme that I had removed. I deleted the whole "default" folder and now the Qt5 apps inherit the system cursor theme.
-
- Level 1
- Posts: 19
- Joined: Tue Dec 25, 2018 12:47 am
- Location: New Zealand
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
What directory did you remove? I can't find a $HOME/.icons/ directory for me, and I'm having this issue with all Qt apps after updating to 21.1...
- Midnight True
- Level 7
- Posts: 1508
- Joined: Wed Jul 20, 2022 3:23 am
- Location: Southern and Southwestern area of Mato
- Contact:
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
Please check first in your file manager ifkallestar4 wrote: ⤴Sat Dec 31, 2022 4:15 am What directory did you remove? I can't find a $HOME/.icons/ directory for me, and I'm having this issue with all Qt apps after updating to 21.1...
Show Hidden Files
is "enabled" at Settings
---> View
however if
.icon
do not exist, you need to manually create one.Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
Hi, is this in the ~/.local/share/icons folder?
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
~/.local/share/icons/default
-
- Level 1
- Posts: 19
- Joined: Tue Dec 25, 2018 12:47 am
- Location: New Zealand
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
Thanks - I'm using the terminal, doing an 'ls -ahl' and I don't have that. Do I really need to create it?Midnight True wrote: ⤴Sat Dec 31, 2022 5:39 amPlease check first in your file manager ifkallestar4 wrote: ⤴Sat Dec 31, 2022 4:15 am What directory did you remove? I can't find a $HOME/.icons/ directory for me, and I'm having this issue with all Qt apps after updating to 21.1...Show Hidden Files
is "enabled" atSettings
--->View
however if.icon
do not exist, you need to manually create one.
I notice other posts mention ~/.local/share/icons with a 'default' subdir in, and I have that, but renaming that 'default' to 'default_back' and rebooting the machine hasn't changed anything...
-
- Level 1
- Posts: 19
- Joined: Tue Dec 25, 2018 12:47 am
- Location: New Zealand
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
I've tried actually moving that 'default'/'default_backup' directory as well to a temp location in my $HOME, so it doesn't exist at all in the standard location and rebooting, just in case it was still finding it, and that hasn't changed it either...kallestar4 wrote: ⤴Sat Dec 31, 2022 7:58 pm
I notice other posts mention ~/.local/share/icons with a 'default' subdir in, and I have that, but renaming that 'default' to 'default_back' and rebooting the machine hasn't changed anything...
-
- Level 1
- Posts: 19
- Joined: Tue Dec 25, 2018 12:47 am
- Location: New Zealand
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
I imagine it might be cached in some way, but I would have hoped a reboot would have flushed it if so?
I've even run one of the Qt apps through strace, and I can't see anything icon/cursor related in the output (other than libXcursor.so.1 being loaded): certainly nothing at the file/directory level that I can see...
I've even run one of the Qt apps through strace, and I can't see anything icon/cursor related in the output (other than libXcursor.so.1 being loaded): certainly nothing at the file/directory level that I can see...
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
I have noticed too that when I use something like qBittorrent, my cursor changes when I'm on it's window (default arrow), but when I move onto the desktop, it returns to my preference.
-
- Level 1
- Posts: 19
- Joined: Tue Dec 25, 2018 12:47 am
- Location: New Zealand
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
Okay, after actually reading the 21.1 Readme and seeing instructions to run:
sudo update-alternatives --config x-cursor-theme
then selecting from the list the cursor I set in the Themes preferences, Qt apps are now using the same cursor as other apps, so doing the above fixed it for me.
sudo update-alternatives --config x-cursor-theme
then selecting from the list the cursor I set in the Themes preferences, Qt apps are now using the same cursor as other apps, so doing the above fixed it for me.
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
Yep, that worked! Thank you so much and Happy New Year to all!
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
This is still frustrating.
Using:
sudo update-alternatives --config x-cursor-theme
Will get QT5 to use the current system mouse pointer icon, but the size is wrong.
For instance, we need a larger mouse pointer icon...so we go to Mouse & Touchpad in start menu, and increase the mouse pointer size. We are using X Pro Light.
In QT5, now the mouse pointer style matches the rest of the system - except on Qt5 apps the mouse pointer keeps shrinking to original size.
Re-did the config-x-cursor theme command. Restarted PC. No joy.
Is there an obvious fix we're missing?? It's weird that you have to select the mouse pointer icon in two places on the system, let alone the icon size.
EDIT: I did find more info here: viewtopic.php?t=311591
Not really fixed yet at this end.
Using:
sudo update-alternatives --config x-cursor-theme
Will get QT5 to use the current system mouse pointer icon, but the size is wrong.
For instance, we need a larger mouse pointer icon...so we go to Mouse & Touchpad in start menu, and increase the mouse pointer size. We are using X Pro Light.
In QT5, now the mouse pointer style matches the rest of the system - except on Qt5 apps the mouse pointer keeps shrinking to original size.
Re-did the config-x-cursor theme command. Restarted PC. No joy.
Is there an obvious fix we're missing?? It's weird that you have to select the mouse pointer icon in two places on the system, let alone the icon size.
EDIT: I did find more info here: viewtopic.php?t=311591
Not really fixed yet at this end.
-
- Level 8
- Posts: 2170
- Joined: Wed Aug 14, 2019 1:02 am
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
From that post I see a link to https://linuxreviews.org/Linux_Desktop_ ... URSOR_SIZESizzle wrote: ⤴Sun Jan 22, 2023 9:39 pm EDIT: I did find more info here: viewtopic.php?t=311591
Not really fixed yet at this end.
Then from that page there is a suggestion of
assuming your intended cursor size is 48. Those terminal commands are essentially modifying an existing config file or creating an extra config file.orCode: Select all
sudo sh -c 'echo "XCURSOR_SIZE=48" >> /etc/environment'
Code: Select all
sudo sh -c 'echo "export XCURSOR_SIZE=48" > /etc/profile.d/qt_mouse_pointer_size.sh'
Any result from modifying / creating those files? Do they work?
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
Those settings will force-feed a specific cursor size to Qt, but that still is an issue because if the user changes the cursor size in the Mint Mouse / Pointer application, it doesn't change for Qt. Now you have to go back and issue more commands to alter the forced Qt cursor size.
So it -sorta- works, but still dumb. It seems like you should be able to set the cursor type / size in ONE place, and have those settings apply across all windows / all programs running on the desktop. Qt or not.
So it -sorta- works, but still dumb. It seems like you should be able to set the cursor type / size in ONE place, and have those settings apply across all windows / all programs running on the desktop. Qt or not.
-
- Level 8
- Posts: 2170
- Joined: Wed Aug 14, 2019 1:02 am
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
I guess it is the result of cursor resizing being the less-tested codepath across Gtk and Qt. Most developers probably never change the cursor size.Sizzle wrote: ⤴Fri Jan 27, 2023 1:46 pm Those settings will force-feed a specific cursor size to Qt, but that still is an issue because if the user changes the cursor size in the Mint Mouse / Pointer application, it doesn't change for Qt. Now you have to go back and issue more commands to alter the forced Qt cursor size.
So it -sorta- works, but still dumb. It seems like you should be able to set the cursor type / size in ONE place, and have those settings apply across all windows / all programs running on the desktop. Qt or not.
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
We have to meet various accessibility standards for commercial application - font has to be correct ratio, contrast has to meet a certain spec, cursor size and type has to be correct for a given size monitor.
Mint is pretty close to being OK but some bumps remain. The default mouse pointer on 21.1 Cinnamon is too small and wrong type for what we need.
We've got the pointer type and size hard-coded for the moment - it would be really nice if the look and feel of critical things like mouse pointer were consistent across all windows, all set in ONE place.
The moment one has to to change an option setting in more than one place should set off a small alarm bell that something somewhere isn't as coordinated as it should be.
Thanks!
Mint is pretty close to being OK but some bumps remain. The default mouse pointer on 21.1 Cinnamon is too small and wrong type for what we need.
We've got the pointer type and size hard-coded for the moment - it would be really nice if the look and feel of critical things like mouse pointer were consistent across all windows, all set in ONE place.
The moment one has to to change an option setting in more than one place should set off a small alarm bell that something somewhere isn't as coordinated as it should be.
Thanks!
-
- Level 1
- Posts: 46
- Joined: Thu Aug 20, 2020 1:18 pm
Re: [SOLVED] LM 21.1.: Mouse cursor theme doesn't work on Qt5 apps
I'm having the exact same issue. How come this was reported in December and still not fixed? This problem didn't exist in the previous versions.