summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Erich Ritz <erich.public@protonmail.com>2023-07-21 12:40:17 -0500
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-25 20:40:01 +0700
commitb2dd7f839c94c8eaa9dc86b69db418f8197904cb (patch)
tree92c3022484a96ae2dcbc7eb27919a84035884d6c
parent602ac92b28f2e281c15b8905de305f491c14b156 (diff)
downloadslackbuilds-b2dd7f839c94c8eaa9dc86b69db418f8197904cb.tar.gz
slackbuilds-b2dd7f839c94c8eaa9dc86b69db418f8197904cb.tar.xz
games/puzzles: Add gtk-update-icon-cache to doinst.sh
The last update introduced icons to /usr/share/icons/hicolor/, so gtk-update-icon-cache needs to be added to doinst.sh. This fixes a problem revealed by sbopkglint. Signed-off-by: Erich Ritz <erich.public@protonmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/puzzles/doinst.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/games/puzzles/doinst.sh b/games/puzzles/doinst.sh
index 5fb28930db..65c7e2eeb9 100644
--- a/games/puzzles/doinst.sh
+++ b/games/puzzles/doinst.sh
@@ -1,3 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi