#!/bin/sh # by Chris_(medico_2001) # for Klikit-Linux # GPL - June 2007 xterm -e sudo killall synaptic apt-get dpkg adept export XDIALOG_HIGH_DIALOG_COMPAT=1 DIALOG=Xdialog DIA=Xdialog clear $DIALOG --title "Klikit-Linux Wizard" \ --backtitle " Restore Klikit Splash Screens " \ --radiolist "Klikit-Linux is based on Kubuntu, and as such uses the official apt repositories of *K(U)buntu \n Whenever there is a major update of packages (software), or certain packages are upgraded, such as Openoffice, The Gimp, KDE (the sidebar of the Launch Menu), etc. the custom graphics used by Klikit-Linux are sustituted by those used by (K)Ubuntu\n This script will help you restore the Klikit-Linux custom graphics (splash screens) \n" 45 80 0 \ "Restore" "Restore all Klikit-Linux graphics " on \ "Openoffice" "Restore the Openoffice splash screen " off \ "Gimp" "Restore the Gimp splash screen" off \ "Sidebar" "Restore the Launch Menu sidebar graphic" off \ "Exit" "Close this wizard" off 2> /tmp/checklist.tmp.$$ retval=$? if [ $retval = 1 ]; then exit 0 fi choice=`cat /tmp/checklist.tmp.$$` rm -f /tmp/checklist.tmp.$$ # ----------------------------------- if [ "$choice" = "Restore" ]; then xterm -e sudo cp -rf /usr/lib/openoffice/program/openintro_ubuntu.bmp /usr/lib/openoffice/program/openintro_ubuntu.bmp.bak xterm -e sudo rm -rf /usr/lib/openoffice/program/openintro_ubuntu.bmp xterm -e sudo cp -rf /usr/lib/openoffice/program/intro.klikit.bmp /usr/lib/openoffice/program/openintro_ubuntu.bmp xterm -e sudo cp -rf /usr/share/gimp/2.0/images/gimp-splash.png /usr/share/gimp/2.0/images/gimp-splash.png.bak xterm -e sudo rm -rf /usr/share/gimp/2.0/images/gimp-splash.png xterm -e sudo cp -rf /usr/share/gimp/2.0/images/gimp-splash-klikit.png /usr/share/gimp/2.0/images/gimp-splash.png xterm -e sudo cp -rf /usr/share/apps/kicker/pics/kside.png /usr/share/apps/kicker/pics/kside.png.bak xterm -e sudo rm -rf /usr/share/apps/kicker/pics/kside.png xterm -e sudo cp -rf /usr/share/apps/kicker/pics/kside.klikit.png /usr/share/apps/kicker/pics/kside.png xterm -e sudo cp -rf /usr/share/apps/kicker/pics/kside_tile.png /usr/share/apps/kicker/pics/kside_tile.png.bak xterm -e sudo rm -rf /usr/share/apps/kicker/pics/kside_tile.png xterm -e sudo cp -rf /usr/share/apps/kicker/pics/kside_tile.klikit.png /usr/share/apps/kicker/pics/kside_tile.png kdialog --title="klikit info" --msgbox "All the Klikit-Linux custom graphics were successfully restored \n to enable them you will have to restart your desktop pressing Ctrl + Alt + Backspace at the same time" fi # ----------------------------------- if [ "$choice" = "Openoffice" ]; then xterm -e sudo cp -rf /usr/lib/openoffice/program/openintro_ubuntu.bmp /usr/lib/openoffice/program/openintro_ubuntu.bmp.bak xterm -e sudo rm -rf /usr/lib/openoffice/program/openintro_ubuntu.bmp xterm -e sudo cp -rf /usr/lib/openoffice/program/intro.klikit.bmp /usr/lib/openoffice/program/openintro_ubuntu.bmp kdialog --title="klikit info" --msgbox "the Klikit-Linux Openoffice splash screen was restored successfully" fi # ----------------------------------- if [ "$choice" = "Gimp" ]; then xterm -e sudo cp -rf /usr/share/gimp/2.0/images/gimp-splash.png /usr/share/gimp/2.0/images/gimp-splash.png.bak xterm -e sudo rm -rf /usr/share/gimp/2.0/images/gimp-splash.png xterm -e sudo cp -rf /usr/share/gimp/2.0/images/gimp-splash-klikit.png /usr/share/gimp/2.0/images/gimp-splash.png kdialog --title="klikit info" --msgbox "the Klikit-Linux Gimp splash screen was restored successfully" fi # ----------------------------------- if [ "$choice" = "Sidebar" ]; then xterm -e sudo cp -rf /usr/share/apps/kicker/pics/kside.png /usr/share/apps/kicker/pics/kside.png.bak xterm -e sudo rm -rf /usr/share/apps/kicker/pics/kside.png xterm -e sudo cp -rf /usr/share/apps/kicker/pics/kside.klikit.png /usr/share/apps/kicker/pics/kside.png xterm -e sudo cp -rf /usr/share/apps/kicker/pics/kside_tile.png /usr/share/apps/kicker/pics/kside_tile.png.bak xterm -e sudo rm -rf /usr/share/apps/kicker/pics/kside_tile.png xterm -e sudo cp -rf /usr/share/apps/kicker/pics/kside_tile.klikit.png /usr/share/apps/kicker/pics/kside_tile.png kdialog --title="klikit info" --msgbox "the Launch Menu sidebar graphic was restored successfully,\n to enable it you will have to restart your desktop pressing Ctrl + Alt + Backspace at the same time" fi # ----------------------------------- if [ "$choice" = "Exit" ]; then exit 0 fi exit 0