packages: iceape/iceape.sh (NEW)=?UTF-8?Q?=20?=- copied from seamonkey package
baggins
baggins at pld-linux.org
Tue Jun 5 15:08:59 CEST 2012
Author: baggins Date: Tue Jun 5 13:08:59 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- copied from seamonkey package
---- Files affected:
packages/iceape:
iceape.sh (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/iceape/iceape.sh
diff -u /dev/null packages/iceape/iceape.sh:1.1
--- /dev/null Tue Jun 5 15:08:59 2012
+++ packages/iceape/iceape.sh Tue Jun 5 15:08:54 2012
@@ -0,0 +1,38 @@
+#!/bin/sh
+# based on script by (c) vip at linux.pl, wolf at pld-linux.org
+
+LIBDIR="@LIBDIR@/iceape"
+
+ICEAPE="$LIBDIR/iceape"
+PWD=${PWD:-$(pwd)}
+
+if [ "$1" = "-remote" ]; then
+ exec $ICEAPE "$@"
+else
+ if ! $ICEAPE -remote 'ping()' 2>/dev/null; then
+ if [ -f "$PWD/$1" ]; then
+ exec $ICEAPE "file://$PWD/$1"
+ else
+ exec $ICEAPE "$@"
+ fi
+ else
+ if [ -z "$1" ]; then
+ exec $ICEAPE -remote 'xfeDoCommand(openBrowser)'
+ elif [ "$1" = "-mail" ]; then
+ exec $ICEAPE -remote 'xfeDoCommand(openInbox)'
+ elif [ "$1" = "-compose" -o "$1" = "-editor" ]; then
+ exec $ICEAPE -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 ~/.mozilla/seamonkey/*/prefs.js; then
+ exec $ICEAPE -new-tab "$URL"
+ else
+ exec $ICEAPE -new-window "$URL"
+ fi
+ fi
+ fi
+fi
================================================================
More information about the pld-cvs-commit
mailing list