POSTIN
/bin/sh
if [ $1 = 1 ]; then
if [ -e /etc/xdg/menus/mate-applications.menu ] && ! [ -L /etc/xdg/menus/mate-applications.menu ]; then
rm -fr /etc/xdg/menus/mate-applications.menu
fi
update-alternatives --install \
/etc/xdg/menus/mate-applications.menu matemenu \
/etc/xdg/menus/applications.menu 9
fi
POSTUN
/bin/sh
if [ $1 = 0 ]; then
# Special case, applications.menu is always there because desktop-common-data always installed on default Mageia
# setups. So, remove symlink regardless of its existance.
update-alternatives --remove matemenu /etc/xdg/menus/applications.menu
fi