Article View: news.software.readers
Article #61300Re: [slrn] X browser
From: Heikki Kantola
Date: Sat, 06 May 2000 00:00
Date: Sat, 06 May 2000 00:00
31 lines
2158 bytes
2158 bytes
Matthew Haley <mrh99@uswest.net> informed news.software.readers with the following: >On 6 May 2000 01:47:47 GMT, > Boojum <boojum@att.invalid> wrote: >>Under X, I'd like slrn to invoke Netcape, if it is already open. >>Otherwise I'd like to run lynx. How can I accomplish this? > >--~/.slrnrc >% WWW browser to use. The 'U' key in article mode searches the current article >% for a URL and then calls X browser if slrn appears to be run in X windows >% and non_Xbrowser otherwise. Note: The second Xbrowser form assumes that >% netscape is already running. >set non_Xbrowser "lynx '%s'" >%set Xbrowser "netscape '%s' &" >set Xbrowser "netscape -remote 'openURL(%s)' &" The above only does nothing if Netscape isn't running, however one could try something like this (requires sh-compatible shell): if netscape -remote 'openURL(%s)' & 2>/dev/null; then true; else lynx '%s'; fi I haven't tried that in action, so it might need some tweaking. -- Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI> L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta tunnilta.
Technical Details
Message-ID:
<slrn8h7oq5.2t5h.hezu@tuuri.ling.helsinki.fi>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn8h6ue9.in.boojum@irenic.dyndns.org> <slrn8h78so.4as.mrh99@meome.dyndns.org>Show Full Headers
Complete Article Headers
Message-ID: <slrn8h7oq5.2t5h.hezu@tuuri.ling.helsinki.fi> Subject: Re: [slrn] X browser Date: Sat, 06 May 2000 00:00:00 +0000 From: Heikki Kantola <hezu@iki.fi> References: <slrn8h6ue9.in.boojum@irenic.dyndns.org> <slrn8h78so.4as.mrh99@meome.dyndns.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 619909332 Content-Transfer-Encoding: 8bit Mail-Copies-To: nobody Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: usenet@news.helsinki.fi X-Trace: oravannahka.helsinki.fi 957604677 7404 128.214.78.4 (6 May 2000 09:17:57 GMT) Organization: Department of General Wizardry, Unseen University, Ankh-Morpork User-Agent: slrn/0.9.6.2 (OSF1) Mime-Version: 1.0 NNTP-Posting-Date: 6 May 2000 09:17:57 GMT Newsgroups: news.software.readers