Subject: Url-viewer problems with Fedora Core 2

From: Laura Kriho <[email-masked]>
Date: Mon, 22 Nov 2004 16:22:13 -0700

I am running Pine 4.61-1 on Fedora Core 2.  When I set the url-viewer as
mozilla, netscape, or firefox and try to display a url, pine opens the
browser, but goes to the browser's home page, not the page that was
requested. Any ideas how to get pine to display the requested url, not
just open up the browser?

Thanks in advance,

Laura
-- 
Laura Kriho             | Climate and Global Dynamics Division
Systems Administrator   | National Center for Atmospheric Research 
Tel: (303) 497-1390     | 1850 Table Mesa Dr., Boulder, CO 80305
Email: [email-masked]  | Web: http://www.cgd.ucar.edu/systems/
-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Eduardo Chappa <[email-masked]>
Date: Mon, 22 Nov 2004 15:26:58 -0800 (PST)

*** Laura Kriho ([email-masked]) wrote in the pine-info list today:

:) I am running Pine 4.61-1 on Fedora Core 2.  When I set the url-viewer 
:) as mozilla, netscape, or firefox and try to display a url, pine opens 
:) the browser, but goes to the browser's home page, not the page that was 
:) requested. Any ideas how to get pine to display the requested url, not 
:) just open up the browser?

Hello Laura,

  You need to add the "_URL" token, so for example try

url-viewers = "/path/to/browser _URL_"

(including the quotes). There's more information about this, once you put 
the cursor over the above named variable and press "?".

-- 
Eduardo
Patches/Help: http://www.math.washington.edu/~chappa/pine/
XML/RSS feed: http://www.math.washington.edu/~chappa/pine/pine.xml

---

From: Laura Kriho <[email-masked]>
Date: Mon, 22 Nov 2004 16:38:02 -0700

Thanks.  I set my url-viewer as you suggested, but I still get the same
behavior.
This is the line from my .pinerc
url-viewers="/usr/local/bin/firefox _URL_"

It asks "View selected URL http://www.cnn.com?"
I say yes, and it brings up firefox with google.com (my home page).

---

From: Eduardo Chappa <[email-masked]>
Date: Mon, 22 Nov 2004 15:46:50 -0800 (PST)

:) Thanks.  I set my url-viewer as you suggested, but I still get the same 
:) behavior. This is the line from my .pinerc 
:) url-viewers="/usr/local/bin/firefox _URL_"
:) 
:) It asks "View selected URL http://www.cnn.com?" I say yes, and it 
:) brings up firefox with google.com (my home page).
:) 
Probably because firefox takes arguments in some other way. Take a look at 
this address:

http://kb.mozillazine.org/index.phtml?title=Firefox_:_Tips_:_Making_external_programs_in_Linux_use_Firefox

Hopefully it will help.

---

From: Laura Kriho <[email-masked]>
Date: Mon, 22 Nov 2004 16:53:57 -0700

I tried what you suggested with netscape and mozilla, too, with the same
results, so it's not just a firefox problem.

---

From: Laura Kriho <[email-masked]>
Date: Mon, 22 Nov 2004 16:56:07 -0700

But konqueror worked just now.  Maybe I'll just go with that.

---

From: Eduardo Chappa <[email-masked]>
Date: Mon, 22 Nov 2004 16:02:57 -0800 (PST)

:) But konqueror worked just now.  Maybe I'll just go with that.
:) 
:) Laura Kriho wrote:
:) > 
:) > I tried what you suggested with netscape and mozilla, too, with the 
:) > same results, so it's not just a firefox problem.

The main problem that you have is that the "_URL" part is exactly that, a 
URL. If the program that you are trying to run does not like that 
argument, then it will ignore it or fail. You need to research on how to 
open the browser you want to configure from the *command line with a given 
URL* and write that command (or a script that calls that program) in the 
same way.

I hope this makes you understand the problem you are having.

---

From: Ryan Barrett <[email-masked]>
Date: Mon, 22 Nov 2004 22:04:56 -0800 (PST)

On Mon, 22 Nov 2004, Eduardo Chappa wrote:

> You need to research on how to open the browser you want to configure 
> from the *command line with a given URL* and write that command (or a 
> script that calls that program) in the same way.

quite right. for firefox/mozilla/netscape, specifically, you want to set 
url-viewer to:

  mozilla-xremote-client 'openURL(_URL_,new-tab)'

if you'd prefer to open it in the current tab, or in a new window, check 
out the openURL() options here:

http://www.mozilla.org/unix/remote.html

also, it's very possible that mozilla-xremote-client isn't in your path. 
(i'm not sure how firefox, etc. are installed in fc2.) if not, you'll need 
to give the fully qualified path.

-Ryan

--
"I do not like all these things that I used to..."
    -Brad Wolfe