default_install  &&
if [[ -d kdm-3.141594 ]]; then
  # Restore backuped kdm dir
  echo "Restoring configuration files..."                                           &&
  mv $KDE4DIR/share/config/kdm/backgroundrc kdm-3.141594/backgroundrc.new  &&
  mv $KDE4DIR/share/config/kdm/kdmrc kdm-3.141594/kdmrc.new  &&
  mv kdm-3.141594/{background,kdm}rc $KDE4DIR/share/config/kdm/  &&
  install_config_file kdm-3.141594/backgroundrc.new $KDE4DIR/share/config/kdm/backgroundrc  &&
  install_config_file kdm-3.141594/kdmrc.new $KDE4DIR/share/config/kdm/kdmrc  &&
  rm -r kdm-3.141594
fi  &&
#if [[ $SMGL_THEME == "y" ]]; then
#  if [[ ! -e $KDE4DIR/share/apps/ksplash/Themes/SourceMage ]]; then
#    mkdir $KDE4DIR/share/apps/ksplash/Themes/SourceMage
#  fi &&
#  for file in SourceMage*; do
#    mv $file $KDE4DIR/share/apps/ksplash/Themes/SourceMage/${file#*\\}
#  done
#fi  &&

install  -m 0644  -o root  -g root  $SCRIPT_DIRECTORY/kde4.desktop  \
                  $KDE4DIR/share/xsessions
