Next Previous Table of Contents
KWebWatch can be used to display a URL in the web browser of your choice. If you have specifed a particular URL should be presented in a particular web browser, KWebWatch will comply. Otherwise, it will fall back to the default browser, as specified in the View/Options menu.
KWebWatch supports simple browser command line options. Here are some examples which may be modified to match your preferences:
kfmclient openURL
netscape -geometry =400x500+0+0
kvt -e lynx
kvt -geometry 700x500+100+100 -e lynx
Netscape can be launched with some interesting command line options, which are outlined on the Netscape website here.
Perhaps the most useful option is the -remote
'openURL(http://url.goes.here)'
option. This forces
a specified URL to be displayed in an existing running instance
of Netscape. If you want to use force this behavior when displaying
URLs from KWebWatch, you can write a small shell script. Here's an
example which assumes Netscape is installed in /usr/local/bin :
#!/bin/sh
eval /usr/local/bin/netscape -remote "openURL\($1\)" </dev/null >/dev/null 2>&1
if [ $? != 0 ]; then
eval nohup /usr/local/bin/netscape "$1" </dev/null >/dev/null 2>&1 &
fi
This script will display the URL in a running copy of Netscape if their is one. Otherwise, it will launch a new copy instead. To use this script with KWebWatch, make it executable and give it a unique name. Then point KWebWatch to the path to the script instead of to Netscape itself.
Next Previous Table of Contents