gecko/mobile/xul/installer/debian/fennec.postinst.in

38 lines
809 B
Plaintext
Raw Normal View History

#filter substitution
#literal #! /bin/sh
# postinst script for fennec
#
# see: dh_installdeb(1)
set -e
case "$1" in
configure)
# for faster initial startup
#ifdef MOZ_PLATFORM_MAEMO
/bin/su -l user -c "/usr/bin/fennec -silent" > /dev/null 2>&1 || echo -n ""
#endif
#if MOZ_PLATFORM_MAEMO == 5
# for fennec icons
gtk-update-icon-cache -f /usr/share/icons/hicolor
#endif
# select where to install fennec menu
if [ "$2" == "" ]; then
if [ -x /usr/bin/update-desktop-database ]; then
update-desktop-database /usr/share/applications
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
exit 0