From 8244736bce0733d1fd4b5cfc40af9612307d18dd Mon Sep 17 00:00:00 2001 From: Mystro256 Date: Nov 17 2016 02:17:10 +0000 Subject: Fix iconcache not updating --- diff --git a/xsensors.spec b/xsensors.spec index a3a9c75..a1840b4 100644 --- a/xsensors.spec +++ b/xsensors.spec @@ -1,6 +1,6 @@ Name: xsensors Version: 0.80 -Release: 1%{?dist} +Release: 2%{?dist} Summary: An X11 interface to lm_sensors License: GPLv2+ @@ -51,7 +51,22 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.a %exclude %{_datadir}/appdata/%{name}.appdata.xml %endif +%post +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + %changelog +* Wed Nov 16 2016 Jeremy Newton - 0.80-2 +- Added missing scriplet to update iconcache + * Tue Nov 15 2016 Jeremy Newton - 0.80-1 - Update to 0.80