]> git.pld-linux.org Git - packages/seamonkey.git/blobdiff - seamonkey.sh
- updated to 2.53.18
[packages/seamonkey.git] / seamonkey.sh
index 3eefbbed17a4e66f50f347d946273079f0c4c2cd..c0195190d4d77d856c4ee3e9bb15b5438f06c8a0 100644 (file)
@@ -6,33 +6,17 @@ LIBDIR="@LIBDIR@/seamonkey"
 SEAMONKEY="$LIBDIR/seamonkey"
 PWD=${PWD:-$(pwd)}
 
-if [ "$1" = "-remote" ]; then
-       exec $SEAMONKEY "$@"
+if [ -z "$1" ]; then
+       exec $SEAMONKEY
 else
-       if ! $SEAMONKEY -remote 'ping()' 2>/dev/null; then
-               if [ -f "$PWD/$1" ]; then
-                       exec $SEAMONKEY "file://$PWD/$1"
-               else
-                       exec $SEAMONKEY "$@"
-               fi
+       if [ -f "$PWD/$1" ]; then
+               URL="file://$PWD/$1"
        else
-               if [ -z "$1" ]; then
-                       exec $SEAMONKEY -remote 'xfeDoCommand(openBrowser)'
-               elif [ "$1" = "-mail" ]; then
-                       exec $SEAMONKEY -remote 'xfeDoCommand(openInbox)'
-               elif [ "$1" = "-compose" -o "$1" = "-editor" ]; then
-                       exec $SEAMONKEY -remote 'xfeDoCommand(composeMessage)'
-               else
-                       if [ -f "$PWD/$1" ]; then
-                               URL="file://$PWD/$1"
-                       else
-                               URL="$1"
-                       fi
-                       if ! grep -q browser.tabs.opentabfor.middleclick.*false ~/.seamonkey/*/prefs.js; then
-                               exec $SEAMONKEY -new-tab "$URL"
-                       else
-                               exec $SEAMONKEY -new-window "$URL"
-                       fi
-               fi
+               URL="$1"
+       fi
+       if ! grep -q browser.tabs.opentabfor.middleclick.*false ~/.mozilla/seamonkey/*/prefs.js; then
+               exec $SEAMONKEY -new-tab "$URL"
+       else
+               exec $SEAMONKEY -new-window "$URL"
        fi
 fi
This page took 0.127274 seconds and 4 git commands to generate.