Here's what I do with netscape in linux:
Launch netscape with this shell script:
---BEGIN netscape.sh---
#!/bin/sh
/usr/local/netscape/netscape &
echo "" > ~/.mutt/netwin
while [ "`cat ~/.mutt/netwin`X" = "X" ]; do
xwininfo -root -tree | \
grep "Netscape:" | \
sed -e "s/ *\([0-9a-z]*\) .*/\1/" > ~/.mutt/netwin
done;
---END---
It's a cheesy way to find out the X windows id of the netscape window and load
it into a file. I use ~/.mutt/netwin to store the id. Here's part of my
mailcap file:
---BEGIN .mailcap---
text/html; /usr/local/netscape/netscape \
-id `cat ~/.mutt/netwin` -remote 'openURL(%s)'
---END---
It tells netsacpe to launch the url in a pre-existing window - the id that we
just found in netscape.sh.
Here's my .urlview file:
---BEGIN .urlview---
EXPERT
COMMAND netscape -remote 'openURL(%s)'
---END---
Obviously, your mileage may vary, and I'm not responsible for any cpu fires.
Works for me, though...
Zach
Dave Murray wrote:
> Arrggg!
>
> I can't get mutt to use netscape from URLView.
>
> I put:
> text/html; /opt/netscape/netscape -remote 'openURL(%s)' ; test=RunningX
> or
> text/html; /opt/netscape/netscape -remote 'openURL(%s)'
> into my .mailcap to no avail, it spawns linx.
>
> From mutt I can:
> |/opt/netscape/netscape -remote 'openURL(www.mutt.org);
> and if will work if netscape is running.
>
> Any ideas?
>
> Thanks,
> Dave