Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > e2262f0a4cd8f115a9f53f6063b78ba1 > scriptlet

desktop-common-data-2008.1-8mdv2008.1.noarch.rpm

POSTIN

/bin/sh
if [ -f /etc/X11/window-managers.rpmsave ];then
	/usr/sbin/convertsession -f /etc/X11/window-managers.rpmsave || :
fi
# Create a link to allow users to access to Mandriva Linux's backgrounds from KDE
[ ! -d /usr/share/wallpapers ] && install -d -m 0755 /usr/share/wallpapers
[ ! -e /usr/share/wallpapers/mandrake-linux ] && ln -s /usr/share/mdk/backgrounds/ /usr/share/wallpapers/mandrake-linux
if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi 


if [ -x /usr/sbin/fndSession ]; then /usr/sbin/fndSession || true ; fi 

if [ -x /usr/bin/gtk-update-icon-cache ]; then 
/usr/bin/gtk-update-icon-cache --force --quiet /usr/share/icons/hicolor || true; fi

POSTUN

/bin/sh
# Remove link created to allow users to access to Mandriva Linux's backgrounds from KDE
[ -e /usr/share/wallpapers ] && rm -f /usr/share/wallpapers/mandrake-linux
[ $(ls /usr/share/wallpapers/ | wc -l) -eq 0 ] && rm -fr /usr/share/wallpapers/
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi 

if [ -x /usr/bin/gtk-update-icon-cache -a -r /usr/share/icons/hicolor/index.theme ]; then 
/usr/bin/gtk-update-icon-cache --force --quiet /usr/share/icons/hicolor || true ; fi