Article View: news.software.readers
Article #43311Re: SLRN + Xbrowser
From: Heikki Kantola
Date: Sun, 20 Sep 1998 00:00
Date: Sun, 20 Sep 1998 00:00
41 lines
2151 bytes
2151 bytes
jeff davis <jeff@photuris.jehosophat.com> informed news.software.readers with the following: >from the slrn manual: > > % 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. > set Xbrowser "netscape %s &" > set non_Xbrowser "lynx %s" > >this works okay, BUT if Netscape is already running it tries to launch a new >instance of Netscape ... anyway to prevent that and just have the already open >netscape browser follow the URL? The nearly complete slrn.rc-file which comes in slrn distribution has following commented out: %set Xbrowser "netscape -remote 'openURL(%s)' &" And if one would want to further improve that, you could try following shell script, which starts new netscape if one isn't running yet: #!/bin/sh if netscape -remote "openURL($1,new-window)" then true else netscape $1 & fi Of course if one doesn't prefer new windows, you can loose the "new- window" part... Also be noted that new netscape processes started by slrn will be terminated when you quit slrn. -- 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:
<slrn709jsk.14o.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:
<slrn708o7t.m9p.jeff@photuris.jehosophat.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn709jsk.14o.hezu@tuuri.ling.helsinki.fi> Subject: Re: SLRN + Xbrowser Date: Sun, 20 Sep 1998 00:00:00 +0000 From: hezu@iki.fi (Heikki Kantola) References: <slrn708o7t.m9p.jeff@photuris.jehosophat.com> 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: 392950748 Content-Transfer-Encoding: 8bit Mail-Copies-To: never Content-Type: text/plain; charset=iso-8859-1 Organization: Department of General Wizardry, Unseen University, Ankh-Morpork Mime-Version: 1.0 User-Agent: slrn/0.9.5.3 (UNIX) Newsgroups: news.software.readers