Bug 482805 - In Plasma 6, custom cursor settings aren't affecting KF5 Flatpak apps
Summary: In Plasma 6, custom cursor settings aren't affecting KF5 Flatpak apps
Status: CONFIRMED
Alias: None
Product: flatpak-platform-plugin
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords: qt6
: 483131 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-08 02:55 UTC by Kalcifer
Modified: 2024-04-14 13:44 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kalcifer 2024-03-08 02:55:15 UTC
SUMMARY

Since updating to KDE Plasma 6, the cursor now appears enlarged when it hovers over some applications, namely Nextcloud Desktop (v3.12.1, Flatpak), KeePassXC (v2.7.6, Flatpak), KWrite (v23.08.5, Flatpak).

For example:
- Here is the mouse not hovering over an application: https://imgur.com/a/E4iHS4v
- Here is the mouse hovering over an application (e.g. KeePassXC): https://imgur.com/a/xmC09cq

STEPS TO REPRODUCE

1. Open one of the afformentioned applications.
2. Hover your mouse over the application. 
3. Observe that the mouse is enlarged.


OBSERVED RESULT

The mouse is enlarged when it hovers over certain applications.


EXPECTED RESULT

I would expect the mouse size to remain unchanged when it hovers over any application.


SOFTWARE/OS 
Linux/KDE Plasma: Arch Linux, Kernel v6.7.7-arch1-1
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2


ADDITIONAL INFORMATION

None.
Comment 1 Nate Graham 2024-03-08 23:38:20 UTC
What scale factor (if any) are you using?

Do you have the xsettingsd package installed?
Comment 2 Kalcifer 2024-03-09 05:58:25 UTC
> What scale factor (if any) are you using?

I am not scaling at all — it is at 100% on all monitors.

> Do you have the xsettingsd package installed?

I do.

Side note, this may be an issue with Flatpak in KDE Plasma 6. An update for KWrite came out, and, after updating, the problem went away for KWrite. I have also noticed that system themes are not being applied to other flatpak applications now e.g. Signal Desktop (as in the menu bar is in a light theme when it should be a dark theme — prior to updating to Plasma 6, it was a dark theme). [I have also heard the same anectode from others]https://sh.itjust.works/comment/9628686).
Comment 3 Nate Graham 2024-03-10 22:18:48 UTC
Are all apps exhibiting this app packaged as Flatpaks? Are any non-Flatpak apps also exhibiting the issue?
Comment 4 Nate Graham 2024-03-10 22:22:42 UTC
If all affected apps are Flatpaks, I suspect the issue has something to do with the KDE runtime having an old version of plasma-integration in it. But that's just a guess at this point in time.
Comment 5 Kalcifer 2024-03-10 23:45:49 UTC
> Are all apps exhibiting this app packaged as Flatpaks? Are any non-Flatpak apps also exhibiting the issue?

The only apps that I have noticed issues with, so far, have been Flatpaks ­— although, it's hard to say, as I essentially only have Flatpaks. As a test, I installed the non-Flatpak version of KeePassXC to see if it had the issue, and it didn't — so I would conclude that the themeing issues that I have seen are only affecting the Flatpak versions of apps, but do note that this is so far a sample size of 1.

> I suspect the issue has something to do with the KDE runtime having an old version of plasma-integration in it

Perhaps that's why updating the Flatpak version of KWrite removed its issues? Perhaps it updated its runtime.
Comment 6 Kalcifer 2024-03-10 23:48:36 UTC
Another note for an affected app is Signal Desktop (v7.1.1, Flatpak). The mouse cursor doesn't appear to change size when it hovers over the app, but it isn't following the system themeing anymore — the menu bar is a light theme when it should be a dark theme. This issue only started after updating to Plasma 6.
Comment 7 Kalcifer 2024-03-11 05:25:21 UTC
I have found that the issue of a large cursor also exists with Okular (v23.08.4, Flatpak).
Comment 8 Nate Graham 2024-03-11 15:49:37 UTC
Yep, and that's still a KF5 version, presumably using the older KDE runtime.
Comment 9 Nate Graham 2024-03-11 21:19:56 UTC
*** Bug 483131 has been marked as a duplicate of this bug. ***
Comment 10 Nicolas Fella 2024-03-12 19:27:03 UTC
The Qt5 Flatpak runtime needs to be updated to use plasma-integration 6.0
Comment 11 Kalcifer 2024-03-13 00:07:00 UTC
Okular's flatpak got an update to v24.02.0, and the large mouse cursor issue went away. KeePassXC's flatpak also got an update to v2.7.7, but the large cursor issue remains for it.
Comment 12 Nate Graham 2024-03-13 17:59:34 UTC
Aleix or Albert, do either of you have the power to update the runtime?
Comment 13 Albert Astals Cid 2024-03-13 21:50:52 UTC
It's a MR away!

https://invent.kde.org/packaging/flatpak-kde-runtime
Comment 14 Nate Graham 2024-03-18 19:17:21 UTC
I don't know what needs to be done. If you can walk me through it, I'll be happy to submit an MR, but I suspect it would be much faster for someone who already knows how to fix this to do it.
Comment 15 Albert Astals Cid 2024-03-18 21:38:13 UTC
Nico says 

"The Qt5 Flatpak runtime needs to be updated to use plasma-integration 6.0"

which kind of makes me fear it means we have to compile enough Qt6/KF6 on the KF5 runtime to be able to ship plasma-integration, but I'll let him confirm if that's what he means
Comment 16 Nicolas Fella 2024-03-18 21:52:28 UTC
We only need the qt5 subfolder: https://invent.kde.org/plasma/plasma-integration/-/tree/master/qt5, no Qt6/KF6 needed
Comment 17 Nicolas Fella 2024-03-18 22:00:42 UTC
I'm only 90% sure that what I'm saying is true, so it should be double checked
Comment 18 Kalcifer 2024-03-22 01:27:54 UTC
Another place where I've noticed the large cursor is at the initial SDDM login screen at boot — it doesn't appear in the lock screen.
Comment 19 Anthony Fieroni 2024-04-08 06:42:59 UTC
It's not only KF5 but Qt5 generic applications (all applications using Qt5) it's not only the cursor theme but plasma style as well. Since Qt5 applications works in plasma 6 as expected, flatpak applications should reuse kwayland-integration and plasma-integration, somehow, IDK how, personally.
Comment 20 Marco Huenseler 2024-04-14 13:44:13 UTC
(In reply to Nicolas Fella from comment #16)
> We only need the qt5 subfolder:
> https://invent.kde.org/plasma/plasma-integration/-/tree/master/qt5, no
> Qt6/KF6 needed

I tried this and was pleasantly surprised that this indeed seems to work both on Plasma 5 and 6. Thanks for the hint!

I've just created a MR on the flatpak-kde-runtime repo.