Bug 2172274

Summary: Apps does not load theme icons with Fedora flatpak runtime
Product: [Fedora] Fedora Reporter: Arnis K <ai.iens+bugzilla>
Component: flatpak-runtime-configAssignee: Owen Taylor <otaylor>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: amigadave, klember, mark, otaylor, tpopela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-28 02:57:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
After change
none
Before change none

Description Arnis K 2023-02-21 19:47:14 UTC
Created attachment 1945588 [details]
After change

Created attachment 1945588 [details]
After change

Fedora flatpak runtime does not provide access to theme icons and loads default icons. This can be fixed by updating `metadata` file `/var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f37/active/metadata` and adding `:/run/host/user-share` to `XDG_DATA_DIRS`, for example:

```bash
XDG_DATA_DIRS = /app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share
```

------------------ PACKAGE  -------------------

flatpak info org.fedoraproject.Platform

Fedora Platform - Shared libraries

          ID: org.fedoraproject.Platform
         Ref: runtime/org.fedoraproject.Platform/x86_64/f37
        Arch: x86_64
      Branch: f37
     Version: 37
     License: GPL-2.0+
      Origin: fedora
Installation: system
   Installed: 2,3 GB

      Commit: f1fa59934346c88f1deaac10d2078224f85cb9d39b06bcfaa3f72e45d4114d89
     Subject: build of runtime/org.fedoraproject.Platform/x86_64/f37
        Date: 2023-02-15 14:03:56 +0000
      Alt-id: 6b5fa079c76c62ff9eaccc6bbb0a038ce564f56ce08f7c839a3c62edf13be40a

--------------------- SYSTEM  -----------------

Operating System: Fedora Linux 37 (Kinoite)
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.11-200.fc37.x86_64 (64-bit)
Graphics Platform: Wayland

Comment 1 Arnis K 2023-02-21 19:48:39 UTC
Created attachment 1945589 [details]
Before change

Comment 3 Fedora Update System 2023-02-24 18:55:42 UTC
FEDORA-FLATPAK-2023-bf9f8a0868 has been submitted as an update to Fedora 37 Flatpaks. https://bodhi.fedoraproject.org/updates/FEDORA-FLATPAK-2023-bf9f8a0868

Comment 4 Fedora Update System 2023-02-25 05:11:59 UTC
FEDORA-FLATPAK-2023-bf9f8a0868 has been pushed to the Fedora 37 Flatpaks testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-FLATPAK-2023-bf9f8a0868

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-02-28 02:57:14 UTC
FEDORA-FLATPAK-2023-bf9f8a0868 has been pushed to the Fedora 37 Flatpaks stable repository.
If problem still persists, please make note of it in this bug report.