Bug 427247 - Cursor Style Not Followed in Chromium Snap
Summary: Cursor Style Not Followed in Chromium Snap
Status: RESOLVED UPSTREAM
Alias: None
Product: plasma-integration
Classification: Plasma
Component: general (show other bugs)
Version: 5.19.5
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL: https://bugs.launchpad.net/snapd/+bug...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-02 13:33 UTC by Greg Lepore
Modified: 2020-10-12 15:44 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Lepore 2020-10-02 13:33:03 UTC
SUMMARY
Mouse cursor settings are not followed on Chromium snap application.

STEPS TO REPRODUCE
1. Set cursor style
2. Installed Chromium snap package

OBSERVED RESULT
Mouse cursor does not follow style settings, reverting to basic black pointer

EXPECTED RESULT
Cursor follows style set in KDE Settings

Operating System: KDE neon 5.19
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.0
Kernel Version: 5.4.0-48-generic
OS Type: 64-bit
Processors: 8 × AMD FX(tm)-8350 Eight-Core Processor
Memory: 7.8 GiB of RAM
Graphics Processor: GeForce GT 1030/PCIe/SSE2
Comment 1 Vlad Zahorodnii 2020-10-08 06:52:03 UTC
Why was this bug moved to kwin?
Comment 2 Nate Graham 2020-10-08 13:50:23 UTC
Doesn't KWin draw the cursor?
Comment 3 Vlad Zahorodnii 2020-10-08 19:27:35 UTC
(In reply to Nate Graham from comment #2)
> Doesn't KWin draw the cursor?
Only on Wayland. However, the compositor doesn't dictate the cursor theme or the cursor size, it's up to applications.

It seems to me more like a snap integration bug rather than a kwin bug.
Comment 4 Nate Graham 2020-10-10 20:57:06 UTC
Thanks. Do you know what's responsible for Snap integration? Is that handled by plasma-integration, or something else?
Comment 5 Aleix Pol 2020-10-11 00:25:28 UTC
Plasma integration sets which cursor in src/platformtheme/khintssettings.cpp, Qt actually does the important things.

It would be useful to make sure that snaps can reach the right cursor theme.
Comment 6 Harald Sitter 2020-10-12 12:13:45 UTC
Surely that's a snapd problem

https://github.com/snapcore/snapd/blob/fba407b15bf1c21542d1c5e255765baff3eb8a2d/interfaces/builtin/desktop.go#L69

Notably I don't see a rule for .local/share/icons so user specified cursor themes aren't accessible to confined apps.
Comment 7 Nate Graham 2020-10-12 15:27:57 UTC
I guess that would be the same for themes too: https://bugs.launchpad.net/snapd/+bug/1585332

Greg, can you report a similar bug in the same place, but for cursors?
Comment 8 Greg Lepore 2020-10-12 15:36:55 UTC
Looks like the existing report https://bugs.launchpad.net/snapd/+bug/1585332 covers cursors as well, per this comment:

"This is an umbrella bug for many efforts that build towards having much better support for theming. As one example we recently landed support for icon themes. This will also improve the support for mouse cursor icons. I switched the priority to wishlist because it's not a bug, it's a lot of new functionality for us to implement."
Comment 9 Nate Graham 2020-10-12 15:44:35 UTC
I see. Makes sense.