2 # based on script by (c) vip at linux.pl, wolf at pld-linux.org
4 LIBDIR="@LIBDIR@/thunderbird"
6 # copy profile from Icedove if its available and if no Thunderbird
8 if [ ! -d $HOME/.thunderbird ] && [ -d $HOME/.icedove ]; then
9 echo "Copying profile from Icedove"
10 cp -a $HOME/.icedove $HOME/.thunderbird
13 # compreg.dat and/or chrome.rdf will screw things up if it's from an
14 # older version. http://bugs.gentoo.org/show_bug.cgi?id=63999
15 for f in ~/.thunderbird/*/{compreg.dat,chrome.rdf,XUL.mfasl}; do
16 [ -f "$f" ] || continue
17 if [ "$f" -ot "$0" ] || [ "$f" -ot "$LIBDIR/components/compreg.dat" ]; then
18 echo "Removing $f leftover from older Thunderbird"
23 THUNDERBIRD="$LIBDIR/thunderbird"
25 exec $THUNDERBIRD "$@"