Bug 400370

Summary: Flatpaks do not find third-party icon themes
Product: [Frameworks and Libraries] flatpak-platform-plugin Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Jan Grulich <jgrulich>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, geext29, jgrulich, maringrly69
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot
flatpak wayland-icon

Description Patrick Silva 2018-10-27 15:25:43 UTC
Created attachment 115921 [details]
screenshot

SUMMARY
My icon theme is Newaita installed from kde store.
As you can see in my screenshot, some icons are missing in KolourPaint (nightly build installed from kdeapps repo) and konsole shows the error messasge "Icon theme 'Newaita' not found".


STEPS TO REPRODUCE
1. install and set some third-party icon theme
2. open some nightly flatpak installed from kdeapps repo
https://community.kde.org/Guidelines_and_HOWTOs/Flatpak
3. 

OBSERVED RESULT
third-party icon theme is not found, some icons are missing in the app.

EXPECTED RESULT
nightly flatpak respects the third-party icon theme.


SOFTWARE VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.14.2
Qt Version: 5.12.0 beta3
KDE Frameworks Version: 5.51.0

ADDITIONAL INFORMATION
Same problem affects the nightly build of ktorrent and elisa installed
from kdeapps repo.
Papirus icon theme was also tested.
Comment 1 Denis Karpovskii 2019-02-05 14:52:45 UTC
Are your icons installed in ~/.local/share/icons (or ~/.icons)? If so, it's a flatpak bug (https://github.com/flatpak/flatpak/issues/2649). You can try running any app with --filesystem=~/.local/share/icons:ro (or ~/.icons:ro) like so: flatpak run --filesystem=~/.icons:ro org.kde.okular
Comment 2 Patrick Silva 2019-02-05 14:59:03 UTC
(In reply to Denis Karpovskii from comment #1)
> Are your icons installed in ~/.local/share/icons (or ~/.icons)? 

My icon themes are installed in ~/.local/share/icons.
Comment 3 Aleix Pol 2019-02-05 16:00:44 UTC
And it doesn't happen with applications coming from e.g. flathub?

We are currently packaging icon themes, it could very well be that it's just not supported.
Comment 4 Patrick Silva 2019-02-05 16:31:37 UTC
(In reply to Aleix Pol from comment #3)
> And it doesn't happen with applications coming from e.g. flathub?

konsole shows "Icon theme 'Newaita' not found" when I run kdenlive installed from flathub.
Comment 5 Patrick Silva 2019-06-16 16:39:37 UTC
This bug persists.

Operating System: Arch Linux 
KDE Plasma Version: 5.16.0
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.3
Comment 6 Patrick Silva 2021-09-18 20:24:52 UTC
KolourPaint from flathub is still saying Newaita Dark icon theme was not found when launched via Konsole.

Operating System: Arch Linux
KDE Plasma Version: 5.22.90
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Graphics Platform: Waylands
Comment 7 Patrick Silva 2022-02-01 12:15:32 UTC
Still an issue. Tested ktorent and kolourpaint from flathub with Papirus icon theme from KDE Store.

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
Comment 8 maringrly69 2023-03-07 22:33:03 UTC
Created attachment 157097 [details]
flatpak wayland-icon
Comment 9 maringrly69 2023-03-07 22:33:41 UTC
(In reply to maringrly69 from comment #8)
> Created attachment 157097 [details]
> flatpak wayland-icon

Issue still happens on v5.27.2 with any Wayland-enabled flatpak app.
Comment 10 Patrick Silva 2023-11-18 18:16:28 UTC
Cannot reproduce. \o/

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.81.0
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Graphics Platform: X11