Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > media > core-release > by-pkgid > 84e51873063dd754fae21edbad80c36b > scriptlet

icewm-light-3.3.1-1.mga9.x86_64.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