Re: urlview always uses Lynx

1999-04-13 Thread Wayne Topa

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([EMAIL PROTECTED]):
 Hi!
 Wayne Topa [EMAIL PROTECTED] wrote:
 
  Quoting Daniel González Gasull([EMAIL PROTECTED]):
 
   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:)[?=%:,[EMAIL
PROTECTED]/~\-]+[^.\[:space:][:punct:]]+|(irc|ftp|www)[.][?=%:,[EMAIL 
   PROTECTED]/~\-]+[^.[:space:][:punct:]]+|[EMAIL PROTECTED]/\-]+
   
   # 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 [EMAIL PROTECTED]


Re: urlview always uses Lynx

1999-04-12 Thread Daniel González Gasull
On Sun, Apr 11, 1999 at 02:44:10PM -0400,
Jim Foltz [EMAIL PROTECTED] wrote:

 urlview always opens an xterm running lynx, even when I have netscape
 running in X. Is this the correct behavior? Can I make it use netscape
 if I am in X and Lynx when I am not?

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:)[?=%:,[EMAIL
 PROTECTED]/~\-]+[^.\[:space:][:punct:]]+|(irc|ftp|www)[.][?=%:,[EMAIL 
PROTECTED]/~\-]+[^.[:space:][:punct:]]+|[EMAIL PROTECTED]/\-]+

# command to invoke for selected URL
COMMAND netscape -remote 'openURL(%s)'
-end-

-- 
Daniel González Gasull   Signature  O OA friend is a
mailto:[EMAIL PROTECTED]  under /\=,---.  T/\   present you give
PGP RSA key 1024/EEA93A69construction /\   `O'   U /\  yourself.
   -- Robert Louis
  Stevenson
 __
|  Fight Spam! Join EuroCAUCE: http://www.euro.cauce.org/  |
 ~~


Re: urlview always uses Lynx

1999-04-12 Thread Allan M. Wind
On 1999-04-11 21:24, Daniel González Gasull wrote:

  urlview always opens an xterm running lynx, even when I have netscape
  running in X. Is this the correct behavior? Can I make it use netscape
  if I am in X and Lynx when I am not?
 
 You need a .urlview file in your $HOME:
 
 COMMAND netscape -remote 'openURL(%s)'

Is this race condition still present with mutt:

mutt creates tmp file
mutt spawns external program in background (netscape )
mutt erases tmp file

I was to lazy to write the wrapper and then kinda developed
an appreciation of lynx :-)


/Allan
-- 
Allan M. Wind   Phone:  781.938.5272 (home)
687 Main St., 2nd fl.   Fax:781.938.6641 (fax/modem)
Woburn, MA 01801Email:  [EMAIL PROTECTED] (home)


Re: urlview always uses Lynx

1999-04-12 Thread Wayne Topa

Subject: Re: urlview always uses Lynx
Date: Sun, Apr 11, 1999 at 09:24:48PM +0200

In reply to:Daniel González Gasull

Quoting Daniel González Gasull([EMAIL PROTECTED]):
 On Sun, Apr 11, 1999 at 02:44:10PM -0400,
 Jim Foltz [EMAIL PROTECTED] wrote:
 
  urlview always opens an xterm running lynx, even when I have netscape
  running in X. Is this the correct behavior? Can I make it use netscape
  if I am in X and Lynx when I am not?
 
 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:)[?=%:,[EMAIL
  PROTECTED]/~\-]+[^.\[:space:][:punct:]]+|(irc|ftp|www)[.][?=%:,[EMAIL 
 PROTECTED]/~\-]+[^.[:space:][:punct:]]+|[EMAIL PROTECTED]/\-]+
 
 # command to invoke for selected URL
 COMMAND netscape -remote 'openURL(%s)'
 -end-

Daniel

  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?  

  I have noticed that on Debian I also only get Lynx  ncftp to run.
I world prefer the Slackware operation but have not yet had time to
check out the differences in Debian.

Wayne

 
 -- 
 Daniel González Gasull   Signature  O OA friend is a
 mailto:[EMAIL PROTECTED]  under /\=,---.  T/\   present you give
 PGP RSA key 1024/EEA93A69construction /\   `O'   U /\  yourself.
-- Robert Louis
   Stevenson
  __
 |  Fight Spam! Join EuroCAUCE: http://www.euro.cauce.org/  |
  ~~
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 

-- 
Pascal, n.:
 A programming language named after a man who would turn over in
 his grave if he knew about it.
___
Wayne T. Topa [EMAIL PROTECTED]


Re: urlview always uses Lynx

1999-04-12 Thread Daniel González Gasull
Hi!
Wayne Topa [EMAIL PROTECTED] wrote:

 Quoting Daniel González Gasull([EMAIL PROTECTED]):

  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:)[?=%:,[EMAIL
   PROTECTED]/~\-]+[^.\[:space:][:punct:]]+|(irc|ftp|www)[.][?=%:,[EMAIL 
  PROTECTED]/~\-]+[^.[:space:][:punct:]]+|[EMAIL PROTECTED]/\-]+
  
  # 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?

BTW, what I really use is mozilla.

TIA ;-)

-- 
Daniel González Gasull   Signature  O OA friend is a
mailto:[EMAIL PROTECTED]  under /\=,---.  T/\   present you give
PGP RSA key 1024/EEA93A69construction /\   `O'   U /\  yourself.
   -- Robert Louis
  Stevenson
 __
|  Fight Spam! Join EuroCAUCE: http://www.euro.cauce.org/  |
 ~~


urlview always uses Lynx

1999-04-11 Thread Jim Foltz
Hello,

This problem occurs when, while reading mail with mutt, I use Ctrl-b to
browse the links in the message.

urlview always opens an xterm running lynx, even when I have netscape
running in X. Is this the correct behavior? Can I make it use netscape
if I am in X and Lynx when I am not?

-- 
   Jim Foltz [EMAIL PROTECTED] [EMAIL PROTECTED]
ACORN techie http://www.acorn.net
  AOL/IM Jim Foltz