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