2 # based on script by (c) vip at linux.pl, wolf at pld-linux.org
4 LIBDIR="@LIBDIR@/seamonkey"
6 SEAMONKEY="$LIBDIR/seamonkey"
9 if [ "$1" = "-remote" ]; then
12 if ! $SEAMONKEY -remote 'ping()' 2>/dev/null; then
13 if [ -f "$PWD/$1" ]; then
14 exec $SEAMONKEY "file://$PWD/$1"
20 exec $SEAMONKEY -remote 'xfeDoCommand(openBrowser)'
21 elif [ "$1" = "-mail" ]; then
22 exec $SEAMONKEY -remote 'xfeDoCommand(openInbox)'
23 elif [ "$1" = "-compose" -o "$1" = "-editor" ]; then
24 exec $SEAMONKEY -remote 'xfeDoCommand(composeMessage)'
26 if [ -f "$PWD/$1" ]; then
31 if ! grep -q browser.tabs.opentabfor.middleclick.*false ~/.mozilla/seamonkey/*/prefs.js; then
32 exec $SEAMONKEY -new-tab "$URL"
34 exec $SEAMONKEY -new-window "$URL"