done
find xorg/icons -type d -mindepth 1 -maxdepth 2 | while read -r x; do
if [ -e "$x/index.theme" ]; then
- l "$HOME/.icons/`basename "$x"`"
+ d="$HOME/.icons/`basename "$x"`"
+ l $d
+ which gtk-update-icon-cache >/dev/null 2>&1 && gtk-update-icon-cache -qtf $d
+ unset d
fi
done
find xorg/themes -type d -mindepth 1 -maxdepth 1 | while read -r x; do
l "$HOME/share/fonts/`basename "$x"`"
done
#XXX: potential bug with newlines in profile name (if ff even takes it)
-#XXX: breaks on multiple profiles
+#XXX: breaks on multiple profiles, read from profiles.ini
ffdir="`find "$HOME/.mozilla/firefox" -type d -mindepth 1 -maxdepth 1 | head -1 2>$devnull`"
if [ -d "$ffdir" ]; then
find firefox -mindepth 1 -maxdepth 1 | while read -r x; do