]>
Commit | Line | Data |
---|---|---|
0a10b428 | 1 | #!/bin/sh |
2 | # based on script by (c) vip at linux.pl, wolf at pld-linux.org | |
3 | ||
4 | MOZILLA_FIVE_HOME=/usr/lib/mozilla-thunderbird-bin | |
5 | if [ "$1" == "-remote" ]; then | |
6 | $MOZILLA_FIVE_HOME/thunderbird "$@" | |
7 | else | |
8 | PING=`$MOZILLA_FIVE_HOME/thunderbird -remote 'ping()' 2>&1 >/dev/null` | |
9 | if [ -n "$PING" ]; then | |
10 | $MOZILLA_FIVE_HOME/thunderbird "$@" | |
11 | else | |
12 | case "$1" in | |
13 | -compose|-editor) | |
14 | $MOZILLA_FIVE_HOME/thunderbird -remote 'xfeDoCommand (composeMessage)' | |
15 | ;; | |
16 | *) | |
17 | $MOZILLA_FIVE_HOME/thunderbird -remote 'xfeDoCommand (openInbox)' | |
18 | ;; | |
19 | esac | |
20 | fi | |
21 | fi |