Icons apps are missing

Hi,

I miss quietly all my icons apps installed from Flathub.

I use Gnome-Software 47.4 on Nixos unstable.

Thank you!

And it’s also the same thing if I disable my Gnome extensions.

It also happens with Flatpak apps installed from command line.
So it’s not due to Gnome-Software.

What is the output of echo $XDG_DATA_DIRS?

Also if this are installed as user, what is the output of stat -c %y ~/.local/share/flatpak/exports/share/icons/hicolor/icon-theme.cache and strings ~/.local/share/flatpak/exports/share/icons/hicolor/icon-theme.cache.

If it’s system stat -c %y /var/lib/flatpak/exports/share/icons/hicolor/icon-theme.cache, strings /var/lib/flatpak/exports/share/icons/hicolor/icon-theme.cache

I’ve only ever seen this rarely, and usually it disappears after a restart.

Hi bbhtt!

[eyome@nixos:~]$ echo $XDG_DATA_DIRS
/nix/store/lclkbgxa5ljw587lr3aqrbx4k4sqr7jq-gnome-console-47.1/share:/nix/store/lp1n3fdfisbzvdgvmk7jk7xivl8hg2n5-gsettings-desktop-schemas-47.1/share/gsettings-schemas/gsettings-desktop-schemas-47.1:/nix/store/jlbffm71ylch5dyw44g2p2c857p1yqjv-gtk4-4.16.12/share/gsettings-schemas/gtk4-4.16.12:/nix/store/lclkbgxa5ljw587lr3aqrbx4k4sqr7jq-gnome-console-47.1/share/gsettings-schemas/gnome-console-47.1:/nix/store/mzpqxk2x7lbfpj5hk5q47ygi1rm3jqkp-gnome-mimeapps/share:/nix/store/gzb8byb2jh9sq4lwx5hhfqsc1zkmvm0g-desktops/share:/home/eyome/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/home/eyome/.nix-profile/share:/nix/profile/share:/home/eyome/.local/state/nix/profile/share:/etc/profiles/per-user/eyome/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share:/nix/store/lb38czk58q579sdangnijp3b2z3hkl9i-gnome-shell-47.4/share/gsettings-schemas/gnome-shell-47.4:/nix/store/fabm0m2hgfzg8g63rh2nj09if74frcin-gnome-session-47.0.1/share:/nix/store/lp1n3fdfisbzvdgvmk7jk7xivl8hg2n5-gsettings-desktop-schemas-47.1/share/gsettings-schemas/gsettings-desktop-schemas-47.1:/nix/store/s6sg70v6kkwmgkd6nv0rjr5kr28m9777-gtk+3-3.24.48/share/gsettings-schemas/gtk+3-3.24.48:/nix/store/433ipd9axfqx86mm6s9wn6ix4gpd91si-gnome-settings-daemon-47.2/share/gsettings-schemas/gnome-settings-daemon-47.2:/nix/store/fabm0m2hgfzg8g63rh2nj09if74frcin-gnome-session-47.0.1/share/gsettings-schemas/gnome-session-47.0.1:/nix/store/lb38czk58q579sdangnijp3b2z3hkl9i-gnome-shell-47.4/share

My apps are installed as system:

[eyome@nixos:~]$ stat -c %y /var/lib/flatpak/exports/share/icons/hicolor/icon-theme.cache
2025-02-23 15:55:32.332880483 +0100

eyome@nixos:~]$ strings /var/lib/flatpak/exports/share/icons/hicolor/icon-theme.cache
The program 'strings' is not in your PATH. It is provided by several packages.
You can make it available in an ephemeral shell by typing one of the following:
  nix-shell -p _9base
  nix-shell -p arocc
  nix-shell -p bintools
  nix-shell -p bintools-unwrapped
  nix-shell -p binutils
  nix-shell -p binutils-unwrapped-all-targets
  nix-shell -p binutils-unwrapped_2_38
  nix-shell -p binutilsNoLibc
  nix-shell -p binutils_nogold
  nix-shell -p busybox
  nix-shell -p ccacheWrapper
  nix-shell -p clang
  nix-shell -p clang_12
  nix-shell -p clang_13
  nix-shell -p clang_14
  nix-shell -p clang_15
  nix-shell -p clang_16
  nix-shell -p clang_17
  nix-shell -p clang_18
  nix-shell -p clang_20
  nix-shell -p clang_multi
  nix-shell -p distccWrapper
  nix-shell -p gcc
  nix-shell -p gcc10
  nix-shell -p gcc11
  nix-shell -p gcc12
  nix-shell -p gcc13
  nix-shell -p gcc14
  nix-shell -p gcc9
  nix-shell -p gcc_debug
  nix-shell -p gcc_multi
  nix-shell -p gccgo
  nix-shell -p gccgo12
  nix-shell -p gccgo13
  nix-shell -p gccgo14
  nix-shell -p gdc
  nix-shell -p gfortran
  nix-shell -p gfortran10
  nix-shell -p gfortran11
  nix-shell -p gfortran12
  nix-shell -p gfortran13
  nix-shell -p gfortran14
  nix-shell -p gfortran9
  nix-shell -p gnat
  nix-shell -p gnat-bootstrap
  nix-shell -p gnat-bootstrap11
  nix-shell -p gnat-bootstrap13
  nix-shell -p gnat-bootstrap14
  nix-shell -p gnat12
  nix-shell -p gnat14
  nix-shell -p llvmPackages.bintools
  nix-shell -p llvmPackages.bintools-unwrapped
  nix-shell -p llvmPackages.bintoolsNoLibc
  nix-shell -p llvmPackages.clangNoCompilerRt
  nix-shell -p llvmPackages.clangNoCompilerRtWithLibc
  nix-shell -p llvmPackages.clangNoLibc
  nix-shell -p llvmPackages.clangNoLibcxx
  nix-shell -p llvmPackages.clangUseLLVM
  nix-shell -p llvmPackages.clangWithLibcAndBasicRtAndLibcxx
  nix-shell -p llvmPackages.libcxxClang
  nix-shell -p llvmPackages_12.bintools
  nix-shell -p llvmPackages_12.bintools-unwrapped
  nix-shell -p llvmPackages_12.bintoolsNoLibc
  nix-shell -p llvmPackages_12.clangNoCompilerRt
  nix-shell -p llvmPackages_12.clangNoCompilerRtWithLibc
  nix-shell -p llvmPackages_12.clangNoLibc
  nix-shell -p llvmPackages_12.clangNoLibcxx
  nix-shell -p llvmPackages_12.clangUseLLVM
  nix-shell -p llvmPackages_12.clangWithLibcAndBasicRtAndLibcxx
  nix-shell -p llvmPackages_12.libcxxClang
  nix-shell -p llvmPackages_13.bintools
  nix-shell -p llvmPackages_13.bintools-unwrapped
  nix-shell -p llvmPackages_13.bintoolsNoLibc
  nix-shell -p llvmPackages_13.clangNoCompilerRt
  nix-shell -p llvmPackages_13.clangNoCompilerRtWithLibc
  nix-shell -p llvmPackages_13.clangNoLibc
  nix-shell -p llvmPackages_13.clangNoLibcxx
  nix-shell -p llvmPackages_13.clangUseLLVM
  nix-shell -p llvmPackages_13.clangWithLibcAndBasicRtAndLibcxx
  nix-shell -p llvmPackages_13.libcxxClang
  nix-shell -p llvmPackages_14.bintools
  nix-shell -p llvmPackages_14.bintools-unwrapped
  nix-shell -p llvmPackages_14.bintoolsNoLibc
  nix-shell -p llvmPackages_14.clangNoCompilerRt
  nix-shell -p llvmPackages_14.clangNoCompilerRtWithLibc
  nix-shell -p llvmPackages_14.clangNoLibc
  nix-shell -p llvmPackages_14.clangNoLibcxx
  nix-shell -p llvmPackages_14.clangUseLLVM
  nix-shell -p llvmPackages_14.clangWithLibcAndBasicRtAndLibcxx
  nix-shell -p llvmPackages_14.libcxxClang
  nix-shell -p llvmPackages_15.bintools
  nix-shell -p llvmPackages_15.bintools-unwrapped
  nix-shell -p llvmPackages_15.bintoolsNoLibc
  nix-shell -p llvmPackages_15.clangNoCompilerRt
  nix-shell -p llvmPackages_15.clangNoCompilerRtWithLibc
  nix-shell -p llvmPackages_15.clangNoLibc
  nix-shell -p llvmPackages_15.clangNoLibcxx
  nix-shell -p llvmPackages_15.clangUseLLVM
  nix-shell -p llvmPackages_15.clangWithLibcAndBasicRtAndLibcxx
  nix-shell -p llvmPackages_15.libcxxClang
  nix-shell -p llvmPackages_16.bintools
  nix-shell -p llvmPackages_16.bintools-unwrapped
  nix-shell -p llvmPackages_16.bintoolsNoLibc
  nix-shell -p llvmPackages_16.clangNoCompilerRt
  nix-shell -p llvmPackages_16.clangNoCompilerRtWithLibc
  nix-shell -p llvmPackages_16.clangNoLibc
  nix-shell -p llvmPackages_16.clangNoLibcxx
  nix-shell -p llvmPackages_16.clangUseLLVM
  nix-shell -p llvmPackages_16.clangWithLibcAndBasicRtAndLibcxx
  nix-shell -p llvmPackages_16.libcxxClang
  nix-shell -p llvmPackages_17.bintools
  nix-shell -p llvmPackages_17.bintools-unwrapped
  nix-shell -p llvmPackages_17.bintoolsNoLibc
  nix-shell -p llvmPackages_17.clangNoCompilerRt
  nix-shell -p llvmPackages_17.clangNoCompilerRtWithLibc
  nix-shell -p llvmPackages_17.clangNoLibc
  nix-shell -p llvmPackages_17.clangNoLibcxx
  nix-shell -p llvmPackages_17.clangUseLLVM
  nix-shell -p llvmPackages_17.clangWithLibcAndBasicRtAndLibcxx
  nix-shell -p llvmPackages_17.libcxxClang
  nix-shell -p llvmPackages_18.bintools
  nix-shell -p llvmPackages_18.bintools-unwrapped
  nix-shell -p llvmPackages_18.bintoolsNoLibc
  nix-shell -p llvmPackages_18.clangNoCompilerRt
  nix-shell -p llvmPackages_18.clangNoCompilerRtWithLibc
  nix-shell -p llvmPackages_18.clangNoLibc
  nix-shell -p llvmPackages_18.clangNoLibcxx
  nix-shell -p llvmPackages_18.clangUseLLVM
  nix-shell -p llvmPackages_18.clangWithLibcAndBasicRtAndLibcxx
  nix-shell -p llvmPackages_18.libcxxClang
  nix-shell -p llvmPackages_20.bintools
  nix-shell -p llvmPackages_20.bintools-unwrapped
  nix-shell -p llvmPackages_20.bintoolsNoLibc
  nix-shell -p llvmPackages_20.clangNoCompilerRt
  nix-shell -p llvmPackages_20.clangNoCompilerRtWithLibc
  nix-shell -p llvmPackages_20.clangNoLibc
  nix-shell -p llvmPackages_20.clangNoLibcxx
  nix-shell -p llvmPackages_20.clangUseLLVM
  nix-shell -p llvmPackages_20.clangWithLibcAndBasicRtAndLibcxx
  nix-shell -p llvmPackages_20.libcxxClang
  nix-shell -p rocmPackages_5.rocgdb
  nix-shell -p toybox
  nix-shell -p u-root-cmds

@razeee I’d love to, but it’s been like this for months :sweat_smile:

Thank you!

Looks like the icon cache isn’t being refreshed when installing Flatpaks and the cache has no entry for Flatpak app icons. Flatpak provides a trigger for this which is supposed to get automatically executed flatpak/triggers/gtk-icon-cache.trigger at main · flatpak/flatpak · GitHub

You can run the command manually to refresh it.

There’s probably something wrong which is why the triggers aren’t running. Pass -vvv when installing and check if it shows some info.

I just need to run:

cp /usr/share/icons/hicolor/index.theme "$1/exports/share/icons/hicolor/"

?

You can copy the script somewhere and manually run it like ./gtk-icon-cache.trigger ~/.local/share/flatpak or /var/lib/flatpak.

Does /usr/share/icons/hicolor/index.theme exist on Nix? Or is it in a different path relative to /nix/store?

[eyome@nixos:~/Bureau]$ sudo ./gtk-icon-cache.trigger.sh /var/lib/flatpak
[sudo] Mot de passe de eyome : 
cp: impossible d'évaluer '/usr/share/icons/hicolor/index.theme': No such file or directory

Above your response :grin:

What does find / -type f -name index.theme -path '*/hicolor/index.theme' 2>/dev/null show?

But it works! I finally have all my icons! :stuck_out_tongue:

Will I have to run this script each time I install a new Flatpak app?

[eyome@nixos:~/Bureau]$ find / -type f -name index.theme -path '*/hicolor/index.theme' 2>/dev/null
/run/user/1000/doc/by-app/hu.kramo.Cartridges/96bdd863/Jeux/Steam/steamapps/common/SteamLinuxRuntime_sniper/sniper_platform_0.20240618.92328/files/share/icons/hicolor/index.theme
/run/user/1000/doc/by-app/hu.kramo.Cartridges/96bdd863/Jeux/Steam/steamapps/common/SteamLinuxRuntime_sniper/var/tmp-TC9OR2/usr/share/icons/hicolor/index.theme
/run/user/1000/doc/by-app/hu.kramo.Cartridges/96bdd863/Jeux/Steam/steamapps/common/SteamLinuxRuntime_sniper/var/tmp-CKKIR2/usr/share/icons/hicolor/index.theme
/run/user/1000/doc/by-app/hu.kramo.Cartridges/96bdd863/Jeux/Steam/steamapps/common/SteamLinuxRuntime_soldier/soldier_platform_0.20240618.92327/files/share/icons/hicolor/index.theme
/run/user/1000/doc/by-app/hu.kramo.Cartridges/96bdd863/Jeux/Steam/steamapps/common/SteamLinuxRuntime_soldier/var/tmp-D1LO91/usr/share/icons/hicolor/index.theme
/run/user/1000/doc/96bdd863/Jeux/Steam/steamapps/common/SteamLinuxRuntime_sniper/sniper_platform_0.20240618.92328/files/share/icons/hicolor/index.theme
/run/user/1000/doc/96bdd863/Jeux/Steam/steamapps/common/SteamLinuxRuntime_sniper/var/tmp-TC9OR2/usr/share/icons/hicolor/index.theme
/run/user/1000/doc/96bdd863/Jeux/Steam/steamapps/common/SteamLinuxRuntime_sniper/var/tmp-CKKIR2/usr/share/icons/hicolor/index.theme
/run/user/1000/doc/96bdd863/Jeux/Steam/steamapps/common/SteamLinuxRuntime_soldier/soldier_platform_0.20240618.92327/files/share/icons/hicolor/index.theme
/run/user/1000/doc/96bdd863/Jeux/Steam/steamapps/common/SteamLinuxRuntime_soldier/var/tmp-D1LO91/usr/share/icons/hicolor/index.theme
/mnt/Jeux/Steam/steamapps/common/SteamLinuxRuntime_sniper/sniper_platform_0.20240618.92328/files/share/icons/hicolor/index.theme
/mnt/Jeux/Steam/steamapps/common/SteamLinuxRuntime_sniper/var/tmp-TC9OR2/usr/share/icons/hicolor/index.theme
/mnt/Jeux/Steam/steamapps/common/SteamLinuxRuntime_sniper/var/tmp-CKKIR2/usr/share/icons/hicolor/index.theme
/mnt/Jeux/Steam/steamapps/common/SteamLinuxRuntime_soldier/soldier_platform_0.20240618.92327/files/share/icons/hicolor/index.theme
/mnt/Jeux/Steam/steamapps/common/SteamLinuxRuntime_soldier/var/tmp-D1LO91/usr/share/icons/hicolor/index.theme
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/47/5314bdbea1285ac19b9f943b7e795e646aeda99b7eb7ce9b677b4fb872a66bd8/files/share/icons/hicolor/index.theme
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/48/10943396e989593a17d9639a13927a190a3c6d292dacd0905ac3c3ec3371f2fe/files/share/icons/hicolor/index.theme
/var/lib/flatpak/runtime/org.kde.Platform/x86_64/5.15-24.08/9aa61e0a3c9d7575d2431e87c4ec248af208dcd88faf57fbe0d2370676b819fc/files/share/icons/hicolor/index.theme
/var/lib/flatpak/runtime/org.kde.Platform/x86_64/6.8/380cab658976e0aad33718871ea72aa1148083d05130dfd5ad3969e033bb7cff/files/share/icons/hicolor/index.theme
/var/lib/flatpak/runtime/org.kde.Platform/x86_64/6.7/4c0aecd4c103a394ba7a3cff247d4744b6bfdc0e54947f748d887841dd57c151/files/share/icons/hicolor/index.theme
/var/lib/flatpak/runtime/org.gnome.Sdk/x86_64/47/359ffe2dd3b9d931ff4cf3429e680108fbc3fcb49df706a5e69f13a154d4b477/files/share/icons/hicolor/index.theme
/var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/24.08/50874f35da7c9371a5f8e53384b2ae4fb0ab1ae2a461f5e964639dbc81f3aa01/files/share/icons/hicolor/index.theme
/var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/23.08/6086a950e292900fad185132f061192ae5b95b25e863961e05955657c75fa816/files/share/icons/hicolor/index.theme
/var/lib/flatpak/runtime/org.freedesktop.Sdk/x86_64/23.08/3542f5dad3a2d5cf2fc2a514eb70e6478170d7351aab11a3fe92b6bfe0ed2ec3/files/share/icons/hicolor/index.theme
/var/lib/flatpak/exports/share/icons/hicolor/index.theme
/nix/store/6xyxrs106dpki55as2hwickad8l17w8m-hicolor-icon-theme-0.18/share/icons/hicolor/index.theme
/home/eyome/Projects/.gnome-builder/flatpak/runtime/org.gnome.Platform/x86_64/master/ed701c47fff9fcb02d2790210bf57fc3703335c94249b5dad1966e9cf95c9d4f/files/share/icons/hicolor/index.theme
/home/eyome/Projects/.gnome-builder/flatpak/runtime/org.gnome.Sdk/x86_64/master/e6bd1d5c747912d96236c0f0733a8c5997d7ac941e8c2d4691785183dfed4cef/files/share/icons/hicolor/index.theme
/home/eyome/.local/share/Steam/ubuntu12_64/steam-runtime-sniper/var/tmp-XQRVR2/usr/share/icons/hicolor/index.theme
/home/eyome/.local/share/Steam/ubuntu12_64/steam-runtime-sniper/sniper_platform_0.20240423.85483/files/share/icons/hicolor/index.theme

[eyome@nixos:~/Bureau]$ 

No like I said it is supposed work automatically, so something is wrong.