0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.144.227.3


Current Path : /proc/thread-self/root/usr/sbin/
Upload File :
Current File : //proc/thread-self/root/usr/sbin/update-icon-caches

#!/bin/sh

case "$1" in
    ""|-h|--help)
        echo "Usage: $0 directory [ ... ]"
        exit 1
        ;;
esac

for dir in "$@"; do
    if [ ! -d "$dir" ]; then
        continue
    fi
    if [ -f "$dir"/index.theme ]; then
        # Generate or regenerate the cache    
        if ! gtk-update-icon-cache --force --quiet "$dir"; then
            echo "WARNING: icon cache generation failed for $dir"
        fi
    else
        # No more index.theme, remove the cache if it exists
        rm -f "$dir"/icon-theme.cache
        rmdir -p --ignore-fail-on-non-empty "$dir"
    fi
done

exit 0