From 1759f88b9917b7fc4684caf3f52b84d2c043eebd Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 20 Jun 2023 17:11:26 -0400 Subject: graphics/synfigstudio: Fix doinst.sh. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- graphics/synfigstudio/doinst.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'graphics') diff --git a/graphics/synfigstudio/doinst.sh b/graphics/synfigstudio/doinst.sh index 512d088aa268..aea0f894eb32 100644 --- a/graphics/synfigstudio/doinst.sh +++ b/graphics/synfigstudio/doinst.sh @@ -1,3 +1,13 @@ -/usr/bin/update-mime-database -n /usr/share/mime 1> /dev/null 2> /dev/null -/usr/bin/gtk-update-icon-cache /usr/share/icons 1> /dev/null 2> /dev/null -/usr/bin/update-desktop-database 1> /dev/null 2> /dev/null +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/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 -- cgit v1.2.3