pjs/mobile/installer/debian/fennec.postinst.in

37 строки
770 B
Plaintext

#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
# for fennec icons
gtk-update-icon-cache -f /usr/share/icons/hicolor
# 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