Autor Thema: Orginal Firefox und Thunderbird Icons wiederherstellen  (Gelesen 2737 mal)

0 Mitglieder und 1 Gast betrachten dieses Thema.

Offline Old Man

  • Foren-Gott
  • *******
  • Beiträge: 5585
Orginal Firefox und Thunderbird Icons wiederherstellen
« am: 15.August 2006, 19:44:40 »
Dieses Howto ist nur f?r Dapper Drake g?ltig.

Solltet Ihr auch unter Hoary und Breezy die orginalen Firefox und Thunderbird Icons ben?tigen, schaut bitte im n?chsten Beitrag.
Dort findet Ihr ein Script, was an Stelle dieses hier gesetzt wird.



Aus lizenztechnischen Gr?nden darf Ubuntu nicht die original Icons von Mozilla f?r Firefox und Thunderbird benutzen. Viele Nutzer sind aber an die Originale gew?hnt und m?chten diese auch auf ihrem Desktop haben. Man kann diese Icons von Hand ersetzen, man kann aber auch ein kleines Skript nutzen, das die richtigen Icons aus dem Internet holt und sie korrekt im System austauscht.
Quelle: Wiki UbuntuUsers


Mit einem Editor und Root-Rechten erstellt man die Datei mozilla_icons_wiederherstellen in /usr/local/bin/

F?r Gnome:

sudo gedit /usr/local/bin/mozilla_icons_wiederherstellen

F?r KDE:

sudo kwrite /usr/local/bin/mozilla_icons_wiederherstellen

Dort wird folgendes Script eingef?gt.

Zitat
#! /bin/sh

#
# Restore the original Firefox and/or Thunderbird icons.
#

#
# TODO: Create and implement SVG icons
#

FIREFOX_LIB="/usr/lib/firefox/"
FIREFOX_BIN="/usr/bin/mozilla-firefox"
THUNDERBIRD_BIN="/usr/bin/mozilla-thunderbird"

ICON_PACK_URL="http://ubuntu.globalvision.ch/mozilla_icons_dapper.tar.bz2"
ICON_PACK_FILENAME="mozilla_icons_dapper.tar.bz2"
TMP_DIR="/tmp/moz-icons"$$"/"


#Ctrl-C trapping
trap ctrlc INT
ctrlc()
{
        echo -e "\nAborted by user."
        rm -rf $TMP_DIR
        exit 2
}

#Input read function
readyn()
{
        read input
        if [ -z "$input" ] || [ "$input" == "y" ] || [ "$input" == "yes" ] || [ "$input" == "Y" ] || [ "$input" == "YES" ] ; then
                echo 1
                return
        fi
        echo 0
}


#Check if run as root
if [ "$UID" -ne 0 ] ; then
        echo "You must be root to do that!"
        exit 1
fi


#Ask which icons to replace
replace_ff="0"
replace_ff_doc="0"
replace_tb="0"
replace_tb_pm="0"

if [ -x "$FIREFOX_BIN" ] ; then
        #Firefox
        echo -n "Replace the Mozilla Firefox program icon (y/n)? [y] "
        if [ `readyn` -ne 0 ] ; then
                replace_ff="1"
        fi

        #Firefox document
        echo -n "Replace the Mozilla Firefox document icon (y/n)? [y] "
        if [ `readyn` -ne 0 ] ; then
                replace_ff_doc="1"
        fi
fi

if [ -x "$THUNDERBIRD_BIN" ] ; then
        #Thunderbird
        echo -n "Replace the Mozilla Thunderbird program icon (y/n)? [y] "
        if [ `readyn` -ne 0 ] ; then
                replace_tb="1"
        fi

        #Thunderbird profile manager
        echo -n "Replace the Mozilla Thunderbird profile manager icon (y/n)? [y] "
        if [ `readyn` -ne 0 ] ; then
                replace_tb_pm="1"
        fi
fi

if [ "$replace_ff" -eq "0" ] && [ "$replace_ff_doc" -eq "0" ] && [ "$replace_tb" -eq "0" ] && [ "$replace_tb_pm" -eq "0" ] ; then
        echo "Nothing to do here."
        exit 0
fi


#Ask for divert the original packaged files to alternate locations
divert="0"

echo -e "\nDo you want to divert the original packaged files to alternate locations"
echo -n "(make the changes permanent) (y/n)? [y] "
if [ `readyn` -ne 0 ] ; then
        divert="1"
fi


#Downloading
echo -en "\nDownloading and replacing icons. Please wait..."

mkdir $TMP_DIR
wget $ICON_PACK_URL -O $TMP_DIR$ICON_PACK_FILENAME >/dev/null 2>&1
if [ ! -f $TMP_DIR$ICON_PACK_FILENAME ] ; then
        echo -e "\nCannot download icons. Please check your internet connection."
        rm -rf $TMP_DIR
        exit 1
fi
tar xjf $TMP_DIR$ICON_PACK_FILENAME -C $TMP_DIR


#Replace Firefox icon
if [ "$replace_ff" -gt "0" ] ; then
        if [ ! -f $TMP_DIR"mozilla-firefox.png" ] || [ ! -f $TMP_DIR"mozilla-firefox.xpm" ] ; then
                echo "Cannot continue (unavailable Firefox icon file)"
                rm -rf $TMP_DIR
                exit 1
        fi

        #Backup
        cp -f /usr/share/pixmaps/firefox.png /usr/share/pixmaps/firefox.old.png
        cp -f /usr/share/pixmaps/mozilla-firefox.xpm /usr/share/pixmaps/mozilla-firefox.old.xpm
        cp -f $FIREFOX_LIB"icons/default.xpm" $FIREFOX_LIB"icons/default.old.xpm"
        cp -f $FIREFOX_LIB"chrome/icons/default/default.xpm" $FIREFOX_LIB"chrome/icons/default/default.old.xpm"

        #Divert
        if [ "$divert" -gt "0" ] ; then
                dpkg-divert --rename /usr/share/pixmaps/firefox.png >/dev/null
                dpkg-divert --rename /usr/share/pixmaps/mozilla-firefox.xpm >/dev/null
                dpkg-divert --rename /usr/share/firefox/icons/default.xpm >/dev/null
                dpkg-divert --rename /usr/share/firefox/chrome/icons/default/default.xpm >/dev/null
        fi

        #Replace icons
        cp $TMP_DIR"mozilla-firefox.png" /usr/share/pixmaps/firefox.png
        cp $TMP_DIR"mozilla-firefox.xpm" /usr/share/pixmaps/mozilla-firefox.xpm
        cp $TMP_DIR"mozilla-firefox.xpm" $FIREFOX_LIB"icons/default.xpm"
        cp $TMP_DIR"mozilla-firefox.xpm" $FIREFOX_LIB"chrome/icons/default/default.xpm"
        echo -n "."
fi


#Replace Firefox document icon
if [ "$replace_ff_doc" -gt "0" ] ; then
        if [ ! -f $TMP_DIR"mozilla-firefox-doc.png" ] ; then
                echo "Cannot continue (unavailable Firefox document icon file)"
                rm -rf $TMP_DIR
                exit 1
        fi

        #Backup
        cp -f $FIREFOX_LIB"icons/document.png" $FIREFOX_LIB"icons/document.old.png"

        #Divert
        if [ "$divert" -gt "0" ] ; then
                dpkg-divert --rename /usr/share/firefox/icons/document.png >/dev/null
        fi

        #Replace icons
        cp $TMP_DIR"mozilla-firefox-doc.png" $FIREFOX_LIB"icons/document.png"
        echo -n "."
fi


#Replace Thunderbird icon
if [ "$replace_tb" -gt "0" ] ; then
        #TODO: if [ ! -f $TMP_DIR"mozilla-thunderbird.png" ] || [ ! -f $TMP_DIR"mozilla-thunderbird.svg" ] || [ ! -f $TMP_DIR"mozilla-thunderbird.xpm" ] ; then
        if [ ! -f $TMP_DIR"mozilla-thunderbird.png" ] || [ ! -f $TMP_DIR"mozilla-thunderbird.xpm" ] ; then
                echo "Cannot continue (unavailable Thunderbird icon file)"
                rm -rf $TMP_DIR
                exit 1
        fi

        #Backup
        cp -f /usr/share/pixmaps/mozilla-thunderbird.png /usr/share/pixmaps/mozilla-thunderbird.old.png
        #TODO: cp -f /usr/share/pixmaps/mozilla-thunderbird.svg /usr/share/pixmaps/mozilla-thunderbird.old.svg
        cp -f /usr/share/pixmaps/mozilla-thunderbird.xpm /usr/share/pixmaps/mozilla-thunderbird.old.xpm
        cp -f /usr/share/pixmaps/mozilla-thunderbird-menu.png /usr/share/pixmaps/mozilla-thunderbird-menu.old.png
        #TODO: cp -f /usr/share/pixmaps/mozilla-thunderbird-menu.svg /usr/share/pixmaps/mozilla-thunderbird-menu.old.svg
        cp -f /usr/share/pixmaps/mozilla-thunderbird-menu.xpm /usr/share/pixmaps/mozilla-thunderbird-menu.old.xpm
        cp -f /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.old.xpm
        cp -f /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.old.xpm
        cp -f /usr/lib/mozilla-thunderbird/icons/default.xpm /usr/lib/mozilla-thunderbird/icons/default.old.xpm
        cp -f /usr/lib/mozilla-thunderbird/icons/mozicon16.xpm /usr/lib/mozilla-thunderbird/icons/mozicon16.old.xpm
        cp -f /usr/lib/mozilla-thunderbird/icons/mozicon50.xpm /usr/lib/mozilla-thunderbird/icons/mozicon50.old.xpm

        #Divert
        if [ "$divert" -gt "0" ] ; then
                dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird.png >/dev/null
                #TODO: dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird.svg >/dev/null
                dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird.xpm >/dev/null
                dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-menu.png >/dev/null
                #TODO: dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-menu.svg >/dev/null
                dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-menu.xpm >/dev/null
                dpkg-divert --rename /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm >/dev/null
                dpkg-divert --rename /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm >/dev/null
                dpkg-divert --rename /usr/lib/mozilla-thunderbird/icons/default.xpm >/dev/null
                dpkg-divert --rename /usr/lib/mozilla-thunderbird/icons/mozicon16.xpm >/dev/null
                dpkg-divert --rename /usr/lib/mozilla-thunderbird/icons/mozicon50.xpm >/dev/null
        fi

        #Replace icons
        cp $TMP_DIR"mozilla-thunderbird.png" /usr/share/pixmaps/mozilla-thunderbird.png
        #TODO: cp $TMP_DIR"mozilla-thunderbird.svg" /usr/share/pixmaps/mozilla-thunderbird.svg
        cp $TMP_DIR"mozilla-thunderbird.xpm" /usr/share/pixmaps/mozilla-thunderbird.xpm
        cp $TMP_DIR"mozilla-thunderbird.png" /usr/share/pixmaps/mozilla-thunderbird-menu.png
        #TODO: cp $TMP_DIR"mozilla-thunderbird.svg" /usr/share/pixmaps/mozilla-thunderbird-menu.svg
        cp $TMP_DIR"mozilla-thunderbird.xpm" /usr/share/pixmaps/mozilla-thunderbird-menu.xpm
        cp $TMP_DIR"mozilla-thunderbird.xpm" /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm
        cp $TMP_DIR"mozilla-thunderbird.xpm" /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm
        cp $TMP_DIR"mozilla-thunderbird.xpm" /usr/lib/mozilla-thunderbird/icons/default.xpm
        cp $TMP_DIR"mozilla-thunderbird.xpm" /usr/lib/mozilla-thunderbird/icons/mozicon16.xpm
        cp $TMP_DIR"mozilla-thunderbird.xpm" /usr/lib/mozilla-thunderbird/icons/mozicon50.xpm
        echo -n "."
fi


#Replace Thunderbird profile manager icon
if [ "$replace_tb_pm" -gt "0" ] ; then
        #TODO: if [ ! -f $TMP_DIR"mozilla-thunderbird-pm.png" ] || [ ! -f $TMP_DIR"mozilla-thunderbird-pm.svg" ] || [ ! -f $TMP_DIR"mozilla-thunderbird-pm.xpm" ] ; then
        if [ ! -f $TMP_DIR"mozilla-thunderbird-pm.png" ] || [ ! -f $TMP_DIR"mozilla-thunderbird-pm.xpm" ] ; then
                echo "Cannot continue (unavailable Thunderbird icon file)"
                rm -rf $TMP_DIR
                exit 1
        fi

        #Backup
        cp -f /usr/share/pixmaps/mozilla-thunderbird-pm.png /usr/share/pixmaps/mozilla-thunderbird-pm.old.png
        #TODO: cp -f /usr/share/pixmaps/mozilla-thunderbird-pm.svg /usr/share/pixmaps/mozilla-thunderbird-pm.old.svg
        cp -f /usr/share/pixmaps/mozilla-thunderbird-pm.xpm /usr/share/pixmaps/mozilla-thunderbird-pm.old.xpm
        cp -f /usr/share/pixmaps/mozilla-thunderbird-pm-menu.png /usr/share/pixmaps/mozilla-thunderbird-pm-menu.old.png
        #TODO: cp -f /usr/share/pixmaps/mozilla-thunderbird-pm-menu.svg /usr/share/pixmaps/mozilla-thunderbird-pm-menu.old.svg
        cp -f /usr/share/pixmaps/mozilla-thunderbird-pm-menu.xpm /usr/share/pixmaps/mozilla-thunderbird-pm-menu.old.xpm

        #Divert
        if [ "$divert" -gt "0" ] ; then
                dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-pm.png >/dev/null
                #TODO: dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-pm.svg >/dev/null
                dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-pm.xpm >/dev/null
                dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-pm-menu.png >/dev/null
                #TODO: dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-pm-menu.svg >/dev/null
                dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-pm-menu.xpm >/dev/null
        fi

        #Replace icons
        cp $TMP_DIR"mozilla-thunderbird-pm.png" /usr/share/pixmaps/mozilla-thunderbird-pm.png
        #TODO: cp $TMP_DIR"mozilla-thunderbird-pm.svg" /usr/share/pixmaps/mozilla-thunderbird-pm.svg
        cp $TMP_DIR"mozilla-thunderbird-pm.xpm" /usr/share/pixmaps/mozilla-thunderbird-pm.xpm
        cp $TMP_DIR"mozilla-thunderbird-pm.png" /usr/share/pixmaps/mozilla-thunderbird-pm-menu.png
        #TODO: cp $TMP_DIR"mozilla-thunderbird-pm.svg" /usr/share/pixmaps/mozilla-thunderbird-pm-menu.svg
        cp $TMP_DIR"mozilla-thunderbird-pm.xpm" /usr/share/pixmaps/mozilla-thunderbird-pm-menu.xpm
        echo -n "."
fi


echo " done !"


#Reload gnome-panel
echo -en "\nShall I reload gnome-panel to apply the changes (y/n)? [y] "
if [ `readyn` -ne 0 ] ; then
        killall gnome-panel
fi


rm -rf $TMP_DIR
exit 0

Jetzt wird die Datei gespeichert.
Nachdem das geschehen ist, wird die Datei ausf?hrbar gemacht.

sudo chmod 700 /usr/local/bin/mozilla_icons_wiederherstellen


Nun geben wir im Terminal folgendes ein:

sudo mozilla_icons_wiederherstellen


Nun werden ein paar Fragen gestellt, die man alle mit Y (Ja) beantworten kann.

Zitat
Replace the Mozilla Firefox program icon (y/n)? [y] y
Replace the Mozilla Firefox document icon (y/n)? [y] y
Replace the Mozilla Thunderbird program icon (y/n)? [y] y
Replace the Mozilla Thunderbird profile manager icon (y/n)? [y] y

Do you want to divert the original packaged files to alternate locations
(make the changes permanent) (y/n)? [y] y






Fragen und Anregungen oder Erg?nzungen zu diesem Howto bitte hier:
http://www.linux-beginnerforum.de/smf/index.php?board=51.0
« Letzte Änderung: 15.August 2006, 20:05:16 von ralle »

Offline Old Man

  • Foren-Gott
  • *******
  • Beiträge: 5585
Re: Orginal Firefox und Thunderbird Icons wiederherstellen
« Antwort #1 am: 15.August 2006, 19:58:10 »
Dieses Script ist nur f?r Hoary 5.04  und Breezy 5.10

Solltet Ihr f?r Hoary und Breezy ein Script f?r die orginalen Firefox und Thunderbird Icons ben?tigen, m?sst Ihr diese hier nehmen.

Es wird alles genauso gemacht, wie im Howto f?r Dapper Drake.
Nur m?sst Ihr das Script von Dapper Drake gegen dieses hier eintauschen.

Zitat
#! /bin/sh

#
# Restore the original Firefox and/or Thunderbird icons.
#

FIREFOX_LIB="/usr/lib/mozilla-firefox/"
FIREFOX_BIN="/usr/bin/mozilla-firefox"
THUNDERBIRD_BIN="/usr/bin/mozilla-thunderbird"

ICON_PACK_URL="http://ubuntu.globalvision.ch/mozilla_icons.tar.bz2"
ICON_PACK_FILENAME="mozilla_icons.tar.bz2"
TMP_DIR="/tmp/moz-icons"$$"/"


#Ctrl-C trapping
trap ctrlc INT
ctrlc()
{
   echo -e "\nAborted by user."
   rm -rf $TMP_DIR
   exit 2
}


#Check if run as root
if [ "$UID" -ne 0 ] ; then
   echo "You must be root to do that!"
   exit 1
fi


#Ask which icons to replace
replace_ff="0"
replace_ff_doc="0"
replace_tb="0"
replace_tb_pm="0"

if [ -x "$FIREFOX_BIN" ] ; then
   #Firefox
   echo -n "Replace the Mozilla Firefox program icon (y/n)? [y] "
   read input
   if [ -z "$input" ] || [ "$input" == "y" ] || [ "$input" == "yes" ] || [ "$input" == "Y" ] || [ "$input" == "YES" ] ; then
      replace_ff="1"
   fi

   #Firefox document
   echo -n "Replace the Mozilla Firefox document icon (y/n)? [y] "
   read input
   if [ -z "$input" ] || [ "$input" == "y" ] || [ "$input" == "yes" ] || [ "$input" == "Y" ] || [ "$input" == "YES" ] ; then
      replace_ff_doc="1"
   fi
fi

if [ -x "$THUNDERBIRD_BIN" ] ; then
   #Thunderbird
   echo -n "Replace the Mozilla Thunderbird program icon (y/n)? [y] "
   read input
   if [ -z "$input" ] || [ "$input" == "y" ] || [ "$input" == "yes" ] || [ "$input" == "Y" ] || [ "$input" == "YES" ] ; then
      replace_tb="1"
   fi

   #Thunderbird profile manager
   echo -n "Replace the Mozilla Thunderbird profile manager icon (y/n)? [y] "
   read input
   if [ -z "$input" ] || [ "$input" == "y" ] || [ "$input" == "yes" ] || [ "$input" == "Y" ] || [ "$input" == "YES" ] ; then
      replace_tb_pm="1"
   fi
fi

if [ "$replace_ff" -eq "0" ] && [ "$replace_ff_doc" -eq "0" ] && [ "$replace_tb" -eq "0" ] && [ "$replace_tb_pm" -eq "0" ] ; then
   echo "Nothing to do here."
   exit 0
fi


#Ask for divert the original packaged files to alternate locations
divert="0"

echo -e "\nDo you want to divert the original packaged files to alternate locations"
echo -n "(make the changes permanent) (y/n)? [y] "
read input
if [ -z "$input" ] || [ "$input" == "y" ] || [ "$input" == "yes" ] || [ "$input" == "Y" ] || [ "$input" == "YES" ] ; then
   divert="1"
fi


#Downloading
echo -en "\nDownloading and replacing icons. Please wait..."

mkdir $TMP_DIR
wget $ICON_PACK_URL -O $TMP_DIR$ICON_PACK_FILENAME >/dev/null 2>&1
if [ ! -f $TMP_DIR$ICON_PACK_FILENAME ] ; then
   echo -e "\nCannot download icons. Please check your internet connection."
   rm -rf $TMP_DIR
   exit 1
fi
tar xjf $TMP_DIR$ICON_PACK_FILENAME -C $TMP_DIR


#Replace Firefox icon
if [ "$replace_ff" -gt "0" ] ; then
   if [ ! -f $TMP_DIR"mozilla-firefox.png" ] || [ ! -f $TMP_DIR"mozilla-firefox.xpm" ] ; then
      echo "Cannot continue (unavailable Firefox icon file)"
      rm -rf $TMP_DIR
      exit 1
   fi

   #Backup
   cp -f /usr/share/pixmaps/mozilla-firefox.png /usr/share/pixmaps/mozilla-firefox.old.png
   cp -f /usr/share/pixmaps/mozilla-firefox.xpm /usr/share/pixmaps/mozilla-firefox.old.xpm
   cp -f $FIREFOX_LIB"icons/default.xpm" $FIREFOX_LIB"icons/default.old.xpm"
   cp -f $FIREFOX_LIB"chrome/icons/default/default.xpm" $FIREFOX_LIB"chrome/icons/default/default.old.xpm"

   #Divert
   if [ "$divert" -gt "0" ] ; then
      dpkg-divert --rename /usr/share/pixmaps/mozilla-firefox.png >/dev/null
      dpkg-divert --rename /usr/share/pixmaps/mozilla-firefox.xpm >/dev/null
      dpkg-divert --rename $FIREFOX_LIB"icons/default.xpm" >/dev/null
      dpkg-divert --rename $FIREFOX_LIB"chrome/icons/default/default.xpm" >/dev/null
   fi

   #Replace icons
   cp $TMP_DIR"mozilla-firefox.png" /usr/share/pixmaps/mozilla-firefox.png
   cp $TMP_DIR"mozilla-firefox.xpm" /usr/share/pixmaps/mozilla-firefox.xpm
   cp $TMP_DIR"mozilla-firefox.xpm" $FIREFOX_LIB"icons/default.xpm"
   cp $TMP_DIR"mozilla-firefox.xpm" $FIREFOX_LIB"chrome/icons/default/default.xpm"
   echo -n "."
fi


#Replace Firefox document icon
if [ "$replace_ff_doc" -gt "0" ] ; then
   if [ ! -f $TMP_DIR"mozilla-firefox-doc.png" ] ; then
      echo "Cannot continue (unavailable Firefox document icon file)"
      rm -rf $TMP_DIR
      exit 1
   fi

   #Backup
   cp -f $FIREFOX_LIB"icons/document.png" $FIREFOX_LIB"icons/document.old.png"

   #Divert
   if [ "$divert" -gt "0" ] ; then
      dpkg-divert --rename $FIREFOX_LIB"icons/document.png" >/dev/null
   fi

   #Replace icons
   cp $TMP_DIR"mozilla-firefox-doc.png" $FIREFOX_LIB"icons/document.png"
   echo -n "."
fi


#Replace Thunderbird icon
if [ "$replace_tb" -gt "0" ] ; then
   if [ ! -f $TMP_DIR"mozilla-thunderbird.xpm" ] ; then
      echo "Cannot continue (unavailable Thunderbird icon file)"
      rm -rf $TMP_DIR
      exit 1
   fi

   #Backup
   cp -f /usr/share/pixmaps/mozilla-thunderbird.xpm /usr/share/pixmaps/mozilla-thunderbird.old.xpm
   cp -f /usr/share/pixmaps/mozilla-thunderbird-menu.xpm /usr/share/pixmaps/mozilla-thunderbird-menu.old.xpm
   cp -f /usr/lib/mozilla-thunderbird/chrome/icons/default/mozilla-thunderbird.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/mozilla-thunderbird.old.xpm
   cp -f /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.old.xpm
   cp -f /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.old.xpm

   #Divert
   if [ "$divert" -gt "0" ] ; then
      dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird.xpm >/dev/null
      dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-menu.xpm >/dev/null
      dpkg-divert --rename /usr/lib/mozilla-thunderbird/chrome/icons/default/mozilla-thunderbird.xpm >/dev/null
      dpkg-divert --rename /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm >/dev/null
      dpkg-divert --rename /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm >/dev/null
   fi

   #Replace icons
   cp $TMP_DIR"mozilla-thunderbird.xpm" /usr/share/pixmaps/mozilla-thunderbird.xpm
   cp $TMP_DIR"mozilla-thunderbird.xpm" /usr/share/pixmaps/mozilla-thunderbird-menu.xpm
   cp $TMP_DIR"mozilla-thunderbird.xpm" /usr/lib/mozilla-thunderbird/chrome/icons/default/mozilla-thunderbird.xpm
   cp $TMP_DIR"mozilla-thunderbird.xpm" /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm
   cp $TMP_DIR"mozilla-thunderbird.xpm" /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm
   echo -n "."
fi


#Replace Thunderbird profile manager icon
if [ "$replace_tb_pm" -gt "0" ] ; then
   if [ ! -f $TMP_DIR"mozilla-thunderbird.xpm" ] ; then
      echo "Cannot continue (unavailable Thunderbird icon file)"
      rm -rf $TMP_DIR
      exit 1
   fi

   #Backup
   cp -f /usr/share/pixmaps/mozilla-thunderbird-pm-menu.xpm /usr/share/pixmaps/mozilla-thunderbird-pm-menu.old.xpm
   cp -f /usr/lib/mozilla-thunderbird/chrome/icons/default/default.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/default.old.xpm

   #Divert
   if [ "$divert" -gt "0" ] ; then
      dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-pm-menu.xpm >/dev/null
      dpkg-divert --rename /usr/lib/mozilla-thunderbird/chrome/icons/default/default.xpm >/dev/null
   fi

   #Replace icons
   cp $TMP_DIR"mozilla-thunderbird.xpm" /usr/share/pixmaps/mozilla-thunderbird-pm-menu.xpm
   cp $TMP_DIR"mozilla-thunderbird.xpm" /usr/lib/mozilla-thunderbird/chrome/icons/default/default.xpm
   echo -n "."
fi


echo " done !"


#Reload gnome-panel
echo -en "\nShall I reload gnome-panel to apply the changes (y/n)? [y] "
read input
if [ -z "$input" ] || [ "$input" == "y" ] || [ "$input" == "yes" ] || [ "$input" == "Y" ] || [ "$input" == "YES" ] ; then
   killall gnome-panel
fi


rm -rf $TMP_DIR
exit 0



Fragen und Anregungen oder Erg?nzungen zu diesem Howto bitte hier:
http://www.linux-beginnerforum.de/smf/index.php?board=51.0