Группа :: Сети/IRC
Пакет: kvirc
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: kvirc-3.2.1-alt-browser.patch
--- kvirc-3.2.1/scripts/browser/kvi_run_netscape.sh~ 2005-02-27 09:31:22 +0300
+++ kvirc-3.2.1/scripts/browser/kvi_run_netscape.sh 2006-03-29 16:17:20 +0400
@@ -1,20 +1,7 @@
#! /bin/sh
-
-set -e
-
-if [ -z "$1" ]; then
- echo "Missing URL"
+if [ -n "$BROWSER" ]
+then
+ exec $BROWSER $@
else
- if which netscape > /dev/null; then
- BROWSER=netscape
- elif which mozilla > /dev/null; then
- BROWSER=mozilla
- else
- echo "Could not find either Netscape or Mozilla"
- exit 0
- fi
- if ! $BROWSER -remote "openUrl($1)" 2> /dev/null; then
- echo "$BROWSER is not currently running. Starting a new instance..."
- $BROWSER "$1" &
- fi
+ exec url_handler.sh $@
fi