File licq-1.3.6-viewurl.patch of Package licq
--- bin/viewurl-mozilla.sh
+++ bin/viewurl-mozilla.sh
@@ -20,9 +20,15 @@
# "new-window" - opens URL in a new window
# "current" - opens URL in the current window
#
+#
+# Because Mozilla is not a part of Suse Linux any more
+# script was rewritten to use Firefox instead.
+# Rewrite the MOZILLA=firefox into MOZILLA=mozilla
+# if you want to use Mozilla, if installed.
+#
if [ -z "${VURL_MOZILLA}" ]; then
- MOZILLA=mozilla
+ MOZILLA=firefox
else
MOZILLA=${VURL_MOZILLA}
fi
@@ -51,6 +57,5 @@
OPENSTRING="${URL},${OPENMODE}"
fi
-# If mozilla is already running, open the URL as new tab,
-# otherwise launch a fresh copy of mozilla.
-((${MOZILLA} -remote openurl\("${OPENSTRING}"\) ) || (${MOZILLA} "${URL}") & ) > /dev/null 2>&1
+( (${MOZILLA} "${URL}") & ) > /dev/null 2>&1
+
--- bin/viewurl-netscape.sh
+++ bin/viewurl-netscape.sh
@@ -19,9 +19,50 @@
# Netscape lockfile does not exist;
# -> Open new window.
#
+# Because Netscape is not a part of Suse Linux any more
+# script was rewritten to use Firefox instead.
+# Uncomment what is commented bellow and comment the rest in case
+# you want to use Netscape, if installed.
+#
+#
+#
+#NETSCAPE=netscape
+#URLHOME='http://www.linux.org'
+#
+#if [ "$1" = "" ] ; then
+# URL=$URLHOME
+#else
+# URL=$1
+#fi
+#
+#if [ -h ${HOME}/.netscape/lock ]; then
+# if ps -e | grep netscape > /dev/null ; then
+# ${NETSCAPE} -remote openURL\("$URL"\,new_window\) &
+# else
+# rm ${HOME}/.netscape/lock
+# ${NETSCAPE} "$URL" &
+# fi
+#else
+# ${NETSCAPE} "$URL" &
+#fi
+#
+if [ -z "${VURL_MOZILLA}" ]; then
+ MOZILLA=firefox
+else
+ MOZILLA=${VURL_MOZILLA}
+fi
-NETSCAPE=netscape
-URLHOME='http://www.linux.org'
+if [ -z "${VURL_HOME}" ]; then
+ URLHOME='http://www.licq.org'
+else
+ URLHOME="${VURL_HOME}"
+fi
+
+if [ -z "${VURL_OPENMODE}" ]; then
+ OPENMODE=new-tab
+else
+ OPENMODE="${VURL_OPENMODE}"
+fi
if [ "$1" = "" ] ; then
URL=$URLHOME
@@ -29,15 +70,12 @@
URL=$1
fi
-if [ -h ${HOME}/.netscape/lock ]; then
- if ps -e | grep netscape > /dev/null ; then
- ${NETSCAPE} -remote openURL\("$URL"\,new_window\) &
- else
- rm ${HOME}/.netscape/lock
- ${NETSCAPE} "$URL" &
- fi
+if [ "${OPENMODE}" = "current" ]; then
+ OPENSTRING="${URL}"
else
- ${NETSCAPE} "$URL" &
+ OPENSTRING="${URL},${OPENMODE}"
fi
+( (${MOZILLA} "${URL}") & ) > /dev/null 2>&1
+