projects
/
xkcdha
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* added maemo icons
[xkcdha]
/
debian
/
xkcdha.postinst
diff --git
a/debian/xkcdha.postinst
b/debian/xkcdha.postinst
index
b5b19d9
..
f129e73
100755
(executable)
--- a/
debian/xkcdha.postinst
+++ b/
debian/xkcdha.postinst
@@
-4,7
+4,12
@@
PKG="xkcdha"
USER="user"
GROUP="users"
USER="user"
GROUP="users"
+ICON_CACHE=/usr/bin/gtk-update-icon-cache
IMG_DIR="/home/$USER/MyDocs/.images/$PKG"
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
exit 0