diff options
Diffstat (limited to 'desktop/ede/doinst.sh')
-rw-r--r-- | desktop/ede/doinst.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/desktop/ede/doinst.sh b/desktop/ede/doinst.sh new file mode 100644 index 0000000000000..4410fea4d95dc --- /dev/null +++ b/desktop/ede/doinst.sh @@ -0,0 +1,20 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + rm $NEW + fi +} + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications 2>/dev/null +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + |