Sophie

Sophie

distrib > Mageia > 8 > i586 > media > core-release > by-pkgid > 52c6ba5d42baf8d3f7398cac4d1522ea > scriptlet

icewm-light-2.0.1-2.mga8.i586.rpm

POSTUN

/bin/sh
if [ "$1" -eq 0 ]; then
	update-alternatives --remove icewm /usr/bin/icewm-light
fi

POSTTRANS

/bin/sh
if [ "$1" -eq 1 ]; then
        if [ -e /usr/share/xsessions/07IceWM.desktop ]; then
                rm -rf /usr/share/xsessions/07IceWM.desktop
        fi
        if [ -e /etc/X11/dm/Sessions/07IceWM.desktop ]; then
                rm -rf /etc/X11/dm/Sessions/07IceWM.desktop
        fi

        update-alternatives \
                --install /usr/bin/icewm icewm /usr/bin/icewm-light 10 \
                --slave /usr/bin/icewm-session icewm-session /usr/bin/icewm-session-light \
                --slave /usr/bin/icesh icesh /usr/bin/icesh-light \
                --slave /usr/bin/icewmbg icewmbg /usr/bin/icewmbg-light \
                --slave /usr/bin/icewmhint icewmhint /usr/bin/icewmhint-light
fi