nunodias/folder-color

Centos stream aarch64 (0)*, x86_64 (0)* Centos stream (0 downloads) Custom 1 i386 (0)*, x86_64 (0)* Custom 1 (0 downloads) Epel for CentOS 6 i386 (0)*, x86_64 (0)* Epel for CentOS 6 (0 downloads) Epel for CentOS 7 x86_64 (0)* Epel for CentOS 7 (0 downloads) Epel for CentOS 8 aarch64 (0)*, x86_64 (0)* Epel for CentOS 8 (0 downloads) Fedora 32 aarch64 (0)*, armhfp (0)*, i386 (0)*, s390x (0)*, x86_64 (0)* Fedora 32 (0 downloads) Fedora 33 aarch64 (0)*, armhfp (0)*, i386 (0)*, s390x (0)*, x86_64 (0)* Fedora 33 (0 downloads) Fedora eln aarch64 (0)*, i386 (0)*, s390x (0)*, x86_64 (0)* Fedora eln (0 downloads) Fedora rawhide aarch64 (0)*, armhfp (0)*, i386 (0)*, s390x (0)*, x86_64 (0)* Fedora rawhide (0 downloads) Mageia 7 aarch64 (0)*, i586 (0)*, x86_64 (0)* Mageia 7 (0 downloads) Mageia cauldron aarch64 (0)*, i586 (0)*, x86_64 (0)* Mageia cauldron (0 downloads) openSUSE Leap 15.1 aarch64 (0)*, x86_64 (0)* openSUSE Leap 15.1 (0 downloads) openSUSE Leap 15.2 aarch64 (0)*, x86_64 (0)* openSUSE Leap 15.2 (0 downloads) openSUSE Tumbleweed aarch64 (0)*, i586 (0)*, x86_64 (0)* openSUSE Tumbleweed (0 downloads)

This is a companion discussion topic for the original entry at https://copr.fedorainfracloud.org/coprs/nunodias/folder-color/

Just wanted to share for anyone else on an immutable distribution that this fails in the post-install scriptlet.

To reproduce on Fedora Silverblue:

  1. Add the copr repo to yum.repos.d: sudo wget -P /etc/yum.repos.d/ https://copr.fedorainfracloud.org/coprs/nunodias/folder-color/repo/fedora-39/nunodias-folder-color-fedora-39.repo
  2. Use rpm-ostree to install folder-color: rpm-ostree install folder-color
  3. Install should fail with the following: error: Running %post for folder-color: bwrap(/bin/sh): Child process killed by signal 1; run `journalctl -t 'rpm-ostree(folder-color.post)'` for more information
  4. journalctl should show errors from gtk-update-icon-cache:
  Jan 20 14:44:18 kepler-surface-go rpm-ostree(folder-color.post)[105604]: gtk-update-icon-cache: Cache file created successfully.
  Jan 20 14:44:18 kepler-surface-go rpm-ostree(folder-color.post)[105607]: gtk-update-icon-cache: No theme index file.

Because rpm-ostree expects you to reboot into a new image deployment after installing a package, I’m not sure if the GTK icon cache needs to be updated after installing. If it doesn’t, then I imagine that portion of the post-install scriptlet could be conditionalized not to run on immutable desktops.

I have paprirus-icon-theme successfully installed on Fedora Silverblue. Perhaps their technique for working with the icon cache could work here? Tree - rpms/papirus-icon-theme - src.fedoraproject.org