Hi Richard Lister,
> On Mon, 2 Jun 1997 14:01:11 +0100 (BST)
> Graeme.McCaffery_at_astro.cf.ac.uk (Graeme McCaffery)
> wrote concerning 'FVWM: netscape':
> > basically I thought I would use a function to send a message to an
> > existing netscape or start up a new one with the hightlight text in question.
> Grab xcb from ftp://www.x.org/contrib/utilities/ and use it in a
> script like this:
A slightly modified version of the script would be as follows, so that
netscape always gets tried with -remote first - otherwise if you tell
fvwm to start a new netscape, but you've got nothing selected, you'll
always get a new netscape, and netscape doesn't like sharing with
itself :-) (In my version of the script, I start netscape on a remote
machine, so I've got to pass the DISPLAY to the script aswell)
#!/bin/sh
DISPLAY=${1:-${DISPLAY}}
export DISPLAY
url=`xcb -S 0 && xcb -p 0`
if [ -n "$url" ]
then
netscape -remote openURL\("$url"\) \
|| exec netscape "$url" &
else
exec netscape -remote \
|| exec netscape &
fi
exit 0
PS: Thanks to Graeme for the idea, I love it!
Steve
_______________________________ ._ o ________________________________
// Stephen Riehm / //\. Stephen.Riehm_at_pc-plus.de
\\\\ pc-plus ' \>> | Phone: +49 89 45566 148
//// 81539 Munich, Germany \\ ` Fax: +49 89 45566 113
\\
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Jun 02 1997 - 09:19:02 BST