diff options
Diffstat (limited to 'www/mozilla-devel/files/mozilla.sh')
-rw-r--r-- | www/mozilla-devel/files/mozilla.sh | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/www/mozilla-devel/files/mozilla.sh b/www/mozilla-devel/files/mozilla.sh index 0e34950cd32c..bbc7d2568bc6 100644 --- a/www/mozilla-devel/files/mozilla.sh +++ b/www/mozilla-devel/files/mozilla.sh @@ -6,13 +6,18 @@ LOCATION='new-tab' cd $MOZILLA_DIR || exit 1 -# catch calls for mozilla mail -if [ "$1" = "-mail" ]; then - REMOTE_COMMAND="xfeDoCommand (openInbox)" -else - REMOTE_COMMAND="openURL($@, $LOCATION)" -fi - +case $1 in + -mail) + REMOTE_COMMAND="xfeDoCommand (openInbox)" + ;; + -*) + exec ./$MOZILLA_EXEC "$@" + ;; + *) + REMOTE_COMMAND="openURL($@, $LOCATION)" + ;; +esac + # process found ./$MOZILLA_EXEC -remote "ping()" && ./$MOZILLA_EXEC -remote "$REMOTE_COMMAND" && exit 0 |