Re: urlview always uses Lynx
Subject: Re: urlview always uses Lynx
Date: Mon, Apr 12, 1999 at 09:55:24AM +0200
In reply to:Daniel González Gasull
Quoting Daniel González Gasull(gasull@altavista.net):
> Hi!
> Wayne Topa <wtopa@ix.netcom.com> wrote:
>
> > Quoting Daniel González Gasull(gasull@altavista.net):
> >
> > > You need a .urlview file in your $HOME:
> > >
> > > -----begin-----
> > > #
> > > # ~/.urlview
> > > #
> > >
> > > # regular expression to use to match URLs
> > > #REGEXP ((((ht|f)tp)|mailto):(//)?[^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">]
> > > REGEXP (finger://|ftp://|http://|https://|nntp://|snews://|gopher://|news:|telnet:)[?=&%:,\#_@a-zA-Z0-9\./~\-]+[^.\[:space:][:punct:]]+|(irc|ftp|www)[.][?=&%:,_@a-zA-Z0-9\./~\-]+[^.[:space:][:punct:]]+|[%+_a-z\.\$A-Z0-9-]+@[a-zA-Z0-9\./\-]+
> > >
> > > # command to invoke for selected URL
> > > COMMAND netscape -remote 'openURL(%s)'
>
> > When I installed urlview on Slackware I was able to use it to
> > run Lynx (if X and/or Netscape wern't running) and ncftp for ftp
> > downloads. Doesn't the above .urlview only use Netscape?
>
> Yes. How can I use a different program depending of the URL type?
>
change COMMAND netscape -remote 'openURL(%s)'
to COMMAND /etc/urlview/url_handler.sh %s
That should do it but I think there may be a problem with
/etc/urlview/url_handler. All I can get to work is lynx right now.
> BTW, what I really use is mozilla.
For that you would have to add it to the options in
/etc/urlview/url_handler. Or just put mozilla in place of Netscape.
But as I said, It doesn't work correctly. When I am in X with
Netscape open and use the urlview in Mutt or Slrn, I get the darn
xterm with lynx in it.
HTH
--
User n.:
A programmer who will believe anything you tell him.
_______________________________________________________
Wayne T. Topa <wtopa@ix.netcom.com>
Reply to: