
# Make default symlink for xinitrc-xfce if 'xinitrc' does not exist,
# or if 'xinitrc' is a dangling symlink

if test ! -e etc/X11/xinit/xinitrc || {
   test -L etc/X11/xinit/xinitrc && test ! -e etc/X11/xinit/xinitrc
}
then
    cd etc/X11/xinit && ln -sf xinitrc-xfce xinitrc
fi

echo "Updating desktop database: update-desktop-database -q usr/share/applications"
update-desktop-database -q usr/share/applications

echo "Updating ICON cache: gtk-update-icon-cache -q -f -i usr/share/icons/hicolor"
gtk-update-icon-cache -q -f -i usr/share/icons/hicolor

