]> git.pld-linux.org Git - packages/thunderbird.git/blame - icedove.sh
- skip subshell in shell wrapper in normal mode
[packages/thunderbird.git] / icedove.sh
CommitLineData
ceb3e54a 1#!/bin/sh
2# based on script by (c) vip at linux.pl, wolf at pld-linux.org
3
4LIBDIR="@LIBDIR@/icedove"
5
e98019c8 6# copy profile from Thunderbird if its available and if no Icedove
7# profile exists
8if [ ! -d $HOME/.icedove ]; then
9 if [ -d $HOME/.thunderbird ]; then
10 echo "Copying profile from Thunderbird"
11 cp -rf $HOME/.thunderbird $HOME/.icedove
12 fi
13fi
14
742b9cc4
ER
15# compreg.dat and/or chrome.rdf will screw things up if it's from an
16# older version. http://bugs.gentoo.org/show_bug.cgi?id=63999
17for f in ~/.icedove/*/{compreg.dat,chrome.rdf,XUL.mfasl}; do
18 if [[ -f ${f} && ${f} -ot "$0" ]]; then
19 echo "Removing ${f} leftover from older Icedove"
20 rm -f "${f}"
21 fi
22done
23
9dfe955f 24ICEDOVE="$LIBDIR/icedove"
ceb3e54a 25
26if [ "$1" == "-remote" ]; then
27 $ICEDOVE "$@"
28else
29 PING=`$ICEDOVE -remote 'ping()' 2>&1 >/dev/null`
30 if [ -n "$PING" ]; then
31 $ICEDOVE "$@"
32 else
33 case "$1" in
34 -compose|-editor)
35 $ICEDOVE -remote 'xfeDoCommand (composeMessage)'
36 ;;
37 *)
38 $ICEDOVE -remote 'xfeDoCommand (openInbox)'
39 ;;
40 esac
41 fi
42fi
This page took 0.17309 seconds and 4 git commands to generate.