Bug 433149

Summary: Please, depend on `xdg-desktop-portal-gtk` on debian package to make gtk themes work
Product: [Applications] Discover Reporter: Unknown <null>
Component: Flatpak BackendAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED DOWNSTREAM    
Severity: wishlist CC: aleixpol, jgrulich, nate, nicolas.fella, null
Priority: NOR Keywords: usability
Version First Reported In: 5.19.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: https://bazaar.launchpad.net/~kubuntu-dev/ubuntu-seeds/kubuntu.jammy/revision/1541
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Unknown 2021-02-18 10:26:31 UTC
SUMMARY
Installing `plasma-discover-backend-flatpak` does not pull `xdg-desktop-portal-gtk` leaving flatpak/gtk/wayland users with non-working themes (https://bugs.kde.org/show_bug.cgi?id=426788), cursor themes (https://bugs.kde.org/show_bug.cgi?id=418936) and broken fonts (https://github.com/flatpak/flatpak/issues/2861).

STEPS TO REPRODUCE
1. Install kubuntu.
2. Login into wayland
3. Install `plasma-discover-backend-flatpak`
4. Install some gtk app from flatpak
5. Gtk theme, cursor theme not applied to app

OBSERVED RESULT
Gtk theme, cursor theme not applied to app.

EXPECTED RESULT
Gtk theme, cursor theme applied to app.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 20.10
(available in About System)
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
https://bugs.launchpad.net/ubuntu/+source/kubuntu-meta/+bug/1915714
Comment 1 Nate Graham 2021-02-18 15:14:36 UTC
That's not a bad idea.
Comment 2 Aleix Pol 2021-02-18 15:23:24 UTC
I don't really understand. You should be using xdg-desktop-portal-kde on Kubuntu.

Maybe there's a problem in xdg-desktop-portal-kde that you're workarounding by running the -gtk counterpart?
Comment 3 Unknown 2021-02-18 15:48:39 UTC
(In reply to Aleix Pol from comment #2)
> I don't really understand. You should be using xdg-desktop-portal-kde on
> Kubuntu.
> 
> Maybe there's a problem in xdg-desktop-portal-kde that you're workarounding
> by running the -gtk counterpart?

I don't know, right now xdg-desktop-portal-kde cannot do what xdg-desktop-portal-gtk can do.
Comment 4 Nicolas Fella 2021-02-18 22:59:17 UTC
Even if installing the -gtk portal was the solution, making discover depend on it is the wrong approach given it's not needed to use flatpak apps
Comment 5 Unknown 2022-05-08 17:03:51 UTC
xdg-desktop-portal-gtk is now preinstalled in kubuntu.