]> git.pld-linux.org Git - packages/thunderbird.git/blobdiff - icedove.sh
- added Patch7: icedove-breakpad.patch as fix for gcc 4.4.2 on x86 machines
[packages/thunderbird.git] / icedove.sh
index 78ae1c2f3f1b424634a159838c3fc9133f264611..dde3a013f583c737c9c3e4ae3dff1a7aa05eceed 100644 (file)
@@ -3,38 +3,16 @@
 
 LIBDIR="@LIBDIR@/icedove"
 
-MOZARGS=
-MOZLOCALE="$(/usr/bin/locale | grep "^LC_MESSAGES=" | \
-               sed -e "s|LC_MESSAGES=||g" -e "s|\"||g" )"
-for MOZLANG in $(echo $LANGUAGE | tr ":" " ") $MOZLOCALE; do
-       eval MOZLANG="$(echo $MOZLANG | sed -e "s|_\([^.]*\).*|-\1|g")"
-
-       if [ -f $LIBDIR/chrome/$MOZLANG.jar ]; then
-               MOZARGS="-UILocale $MOZLANG"
-               break
+# copy profile from Thunderbird if its available and if no Icedove
+# profile exists
+if [ ! -d $HOME/.icedove ]; then
+       if [ -d $HOME/.thunderbird ]; then
+               echo "Copying profile from Thunderbird"
+               cp -rf $HOME/.thunderbird $HOME/.icedove
        fi
-done
-
-if [ -z "$MOZARGS" ]; then
-       # try harder
-       for MOZLANG in $(echo $LANGUAGE | tr ":" " ") $MOZLOCALE; do
-               eval MOZLANG="$(echo $MOZLANG | sed -e "s|_.*||g")"
-
-               LANGFILE=$(echo ${MOZILLA_FIVE_HOME}/chrome/${MOZLANG}*.jar \
-                               | sed 's/\s.*//g' )
-               if [ -f "$LANGFILE" ]; then
-                       MOZLANG=$(basename "$LANGFILE" | sed 's/\.jar//')
-                       MOZARGS="-UILocale $MOZLANG"
-                       break
-               fi
-       done
 fi
 
-if [ -n "$MOZARGS" ]; then
-       ICEDOVE="$LIBDIR/icedove $MOZARGS"
-else
-       ICEDOVE="$LIBDIR/icedove"
-fi
+ICEDOVE="$LIBDIR/icedove"
 
 if [ "$1" == "-remote" ]; then
        $ICEDOVE "$@"
This page took 0.053309 seconds and 4 git commands to generate.