diff options
author | B. Watson <urchlay@slackware.uk> | 2023-06-20 17:11:26 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-06-23 07:48:07 +0700 |
commit | 1759f88b9917b7fc4684caf3f52b84d2c043eebd (patch) | |
tree | 3583ff42db6c10cf12d51b9e7a7c021c33c40547 /graphics | |
parent | ee9c8a07dbae5a6c46ecb55246422bbbbc4da67d (diff) |
graphics/synfigstudio: Fix doinst.sh.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/synfigstudio/doinst.sh | 16 |
1 files changed, 13 insertions, 3 deletions
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 |