#!/bin/sh # /etc/cron.daily/house-cleaning # Update all the shared library links: if [ -x /sbin/ldconfig ]; then /sbin/ldconfig fi # Update the X font indexes: if [ -x /usr/bin/fc-cache ]; then /usr/bin/fc-cache -f fi # Update any existing icon cache files: if find /usr/share/icons 2> /dev/null | grep -q icon-theme.cache ; then for theme_dir in /usr/share/icons/* ; do if [ -r ${theme_dir}/icon-theme.cache ]; then /usr/bin/gtk-update-icon-cache -t -f ${theme_dir} 1> /dev/null 2> /dev/null fi done # This would be a large file and probably shouldn't be there, but if it is # then it must be kept updated, too: if [ -r /usr/share/icons/icon-theme.cache ]; then /usr/bin/gtk-update-icon-cache -t -f /usr/share/icons 1> /dev/null 2> /dev/null fi fi # Update mime database: if [ -x /usr/bin/update-mime-database -a -d /usr/share/mime ]; then /usr/bin/update-mime-database /usr/share/mime & fi # SCIM and other GTK+ input methods like this file kept updated: if [ -x /usr/bin/gtk-query-immodules-2.0 ]; then /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules 2> /dev/null fi # Run update-desktop-database: if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database /usr/share/applications 1> /dev/null 2> /dev/null fi