X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=debian%2Fxkcdha.postinst;h=f129e7324206f07e462bfbad9f37818d5217c1a8;hb=13fbbe391b492b8bff36b8618f88a9ca8848fdf6;hp=b5b19d95cd4843f9360e7a64b4c4d4b54d064ddb;hpb=c6524f6a264b9d17fdce9a1ea67817ec20e22622;p=xkcdha diff --git a/debian/xkcdha.postinst b/debian/xkcdha.postinst index b5b19d9..f129e73 100755 --- a/debian/xkcdha.postinst +++ b/debian/xkcdha.postinst @@ -4,7 +4,12 @@ PKG="xkcdha" USER="user" GROUP="users" +ICON_CACHE=/usr/bin/gtk-update-icon-cache IMG_DIR="/home/$USER/MyDocs/.images/$PKG" -[ "$1" = "configure" -a ! -d $IMG_DIR ] && (mkdir $IMG_DIR && chown -R $USER:$GROUP $IMG_DIR) +if [ "$1" = "configure" ] + [ -d $IMG_DIR ] && (mkdir $IMG_DIR && chown -R $USER:$GROUP $IMG_DIR) + [ -x $ICON_CACHE ] && $ICON_CACHE -f /usr/share/icons/hicolor +fi + exit 0