summaryrefslogtreecommitdiffstats
path: root/desktop/Tela-icon-theme/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/Tela-icon-theme/doinst.sh')
-rw-r--r--desktop/Tela-icon-theme/doinst.sh18
1 files changed, 6 insertions, 12 deletions
diff --git a/desktop/Tela-icon-theme/doinst.sh b/desktop/Tela-icon-theme/doinst.sh
index aea0f894eb..885fb18c31 100644
--- a/desktop/Tela-icon-theme/doinst.sh
+++ b/desktop/Tela-icon-theme/doinst.sh
@@ -1,13 +1,7 @@
-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
+for theme_dir in usr/share/icons/Tela usr/share/icons/Tela-dark; do
+ if [ -e $theme_dir/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f $theme_dir >/dev/null 2>&1
+ fi
fi
-fi
+done