Summary: | On Wayland, third-party cursor theme is not applied to GTK3 apps installed via flatpak | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Patrick Silva <bugseforuns> |
Component: | kcm_cursortheme | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | alex765, dashonwwIII, farline99, hoffmann_lorenz, kusal.jakub, mail, nate, postix, sannythebest95 |
Priority: | NOR | ||
Version: | 5.18.3 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
See Also: |
https://bugs.kde.org/show_bug.cgi?id=432756 https://bugs.kde.org/show_bug.cgi?id=426788 https://bugs.kde.org/show_bug.cgi?id=420859 |
||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Video guide! |
Description
Patrick Silva
2020-03-16 19:21:51 UTC
Is this something we can set with xsettings maybe? (In reply to Nate Graham from comment #1) > Is this something we can set with xsettings maybe? Xsettings, as far as I know, is for X11 only. Cannot reproduce on latest KDE Neon Unstable. Could you reproduce? Tested these gtk3 apps from flathub: PulseEffects News Flash Transmission torrent client HandBrake Celluloid Rhythmbox Swell Foop When I use Breeze cursor theme, the problem is still happening but currently it is random and harder to reproduce. Generally it occurs when I open the app for the first time after login to Wayland session, and the app uses the correct cursor theme after it to be restarted 1 or more times. When I use a third-party cursor theme like Night Diamond (Red) from https://store.kde.org/p/1295073/, the problem consistently affects almost all GTK3 apps mentioned above (only handbrake and Transmission always use the third-party cursor theme on my system). Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.19.80 KDE Frameworks Version: 5.73.0 Qt Version: 5.14.2 Thanks for the information! Any progress on this? (In reply to soredake from comment #7) > https://bugs.launchpad.net/ubuntu/+source/kubuntu-meta/+bug/1915714 xdg-desktop-portal-gtk 1.6.0 is already installed on my system and the situation remains the same as explained in comment 4. Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.21.80 KDE Frameworks Version: 5.80.0 Qt Version: 5.15.2 Graphics Platform: Wayland (In reply to Patrick Silva from comment #8) > (In reply to soredake from comment #7) > > https://bugs.launchpad.net/ubuntu/+source/kubuntu-meta/+bug/1915714 > > xdg-desktop-portal-gtk 1.6.0 is already installed on my system > and the situation remains the same as explained in comment 4. > > Operating System: KDE neon Unstable Edition > KDE Plasma Version: 5.21.80 > KDE Frameworks Version: 5.80.0 > Qt Version: 5.15.2 > Graphics Platform: Wayland It's not started by default, see how to fix this https://github.com/flatpak/flatpak/issues/2861#issuecomment-7424219 I have added XDG_CURRENT_DESKTOP=KDE:GNOME to /etc/environment file and the bug persists even after re-login. (In reply to Patrick Silva from comment #10) > I have added XDG_CURRENT_DESKTOP=KDE:GNOME to /etc/environment file > and the bug persists even after re-login. https://github.com/flatpak/flatpak/issues/2861#issuecomment-742421920 link fixed, do as guide says, and it will work, at least for kubuntu/kde neon. I have followed the instructions in your link but adding [Service] Environment="XDG_CURRENT_DESKTOP=KDE" No change. Cursor theme is still not respected by some GTK3 flatpaks. Thanks for your help anyway. (In reply to Patrick Silva from comment #12) > I have followed the instructions in your link but adding > > [Service] > Environment="XDG_CURRENT_DESKTOP=KDE" > > No change. Cursor theme is still not respected by some GTK3 flatpaks. > > Thanks for your help anyway. xdg-desktop-portal-gtk will start only if XDG_CURRENT_DESKTOP contains sway. Created attachment 135846 [details]
Video guide!
Thanks for the video. That's weird because sway is not even installed on my system. I have tried using "sway" anyway but the problem persists. I'm using red variant of Night Diamond cursor theme ( https://store.kde.org/p/1295073/ ) and Rhythmbox music player from flathub in my tests. Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.21.80 KDE Frameworks Version: 5.80.0 Qt Version: 5.15.2 Graphics Platform: Wayland (In reply to Patrick Silva from comment #15) > Thanks for the video. > That's weird because sway is not even installed on my system. > I have tried using "sway" anyway but the problem persists. > I'm using red variant of Night Diamond cursor theme > ( https://store.kde.org/p/1295073/ ) and Rhythmbox music player from flathub > in my tests. > > Operating System: KDE neon Unstable Edition > KDE Plasma Version: 5.21.80 > KDE Frameworks Version: 5.80.0 > Qt Version: 5.15.2 > Graphics Platform: Wayland >That's weird because sway is not even installed on my system. Some portal is deciding to start or not xdg-desktop-portal-gtk based on XDG_CURRENT_DESKTOP env, if it contains "KDE" portal will not be started, if "sway" or "GNOME" it will be started. >I'm using red variant of Night Diamond cursor theme Custom cursor themes in flatpak is another problem https://github.com/flatpak/flatpak/issues/709 Thank you for clarifying :) Currently Breeze cursor theme is correctly applied to gtk3 flatpaks installed on my system even without the instructions from flatpak bug report. I'm giving a more accurate title to this report right now. Flatpak in general is still a mess with annoying bugs. :( Still an issue. Tested Rhythmbox music player and Celluloid video player from flathub with Radioactive cursor theme from flathub. Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.24.80 KDE Frameworks Version: 5.91.0 Qt Version: 5.15.3 Graphics Platform: Wayland This bug persists on neon unstable. Workaround: 1. install Flatseal from flathub and open it 2. select your gtk app 5. scroll down to 'Filesystem' section 4, enable 'All user files' However, this does not work with all gtk apps. Audacity and Deluge torrent client, for example, are still using incorrect mouse pointer. Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.26.80 KDE Frameworks Version: 5.100.0 Qt Version: 5.15.7 Graphics Platform: Wayland The error still exists. Arch Linux, Plasma 5.27, Frameworks 103, Wayland. The solution from soredake worked right away, but I think this error is unacceptable. Link to the solution https://github.com/flatpak/flatpak/issues/2861#issuecomment-742421920 This seems to be reverse in Plasma 6 Wayland: I have the correct cursor in Gtk windows (Firefox, Inkscape, Easy Effects), but the wrong one in Qt windows (Kile, Tokodon). (In reply to Lorenz Hoffmann from comment #21) > This seems to be reverse in Plasma 6 Wayland: I have the correct cursor in > Gtk windows (Firefox, Inkscape, Easy Effects), but the wrong one in Qt > windows (Kile, Tokodon). Can reproduce with Tokodon from flathub. File a new bug for Qt apps please. Operating System: Arch Linux KDE Plasma Version: 6.0.1 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Graphics Platform: Wayland (In reply to Patrick Silva from comment #22) > Can reproduce with Tokodon from flathub. File a new bug for Qt apps please. Done: https://bugs.kde.org/show_bug.cgi?id=483131 Found out solution (at least for me) from Arch Wiki: (https://wiki.archlinux.org/title/XDG_Desktop_Portal#Poor_font_rendering_in_GTK_apps_on_KDE_Plasma). Run the command: "/usr/lib/xdg-desktop-portal --replace". It requires to xdg-desktop-portal-gtk to be installed. I ran this command once, and now every flatpak GTK app works corretcly with cursors, even after reboots. This bug persists on neon unstable. Affected gtk apps, all of them installed from flathub: Thunderbird mail client Quod libet music player kooha screen recorder Deluge torrent client My cursor theme is "Radioactive" from KDE Store, the workarounds mentioned in comment 19, comment 20 and comment 24 do not work. Operating System: KDE neon Unstable Edition KDE Plasma Version: 6.1.80 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.2 Graphics Platform: Wayland |