Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > a71550c0d436cc3e4997b217e072e9ff > scriptlet

matemenu-vanilla-layout-1.22.0-1.mga7.armv7hl.rpm

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/mate-vanilla-applications.menu 9
fi

POSTUN

/bin/sh
if [ $1 = 0 ]; then
    if ! [ -e /etc/xdg/menus/mate-vanilla-applications.menu ]; then
         update-alternatives --remove matemenu  /etc/xdg/menus/mate-vanilla-applications.menu
    fi
fi