Article View: news.software.readers
Article #147889Re: [slrn] Tip for Firefox (Mozilla) Users
From: SINNER
Date: Sun, 09 May 2004 13:40
Date: Sun, 09 May 2004 13:40
41 lines
2543 bytes
2543 bytes
["Followup-To:" header set to alt.os.linux.]
* derelict wrote in alt.os.linux:
> On Fri, 07 May 2004 03:10:14 +0000, SINNER wrote:
>> ["Followup-To:" header set to news.software.readers.]
> Maybe this script will help. Can't remember the URL where I got it, but
> anyway it fixes the problem with firefox not being able open a second
> instance. Give the script a name and set FIREBIRD_CMD to point to your
> firefox binary.
> The ping() command is of special interest - it indicates whether a copy
> of firefox is already running. I'd guess you could make this work the
> way you want just by changing new-window to new-tab and then invoking
> the script as you Xbrowser.
Thanks! I actually got a slightly smaller one:
#v+
if pgrep -u "$USER" firefox >/dev/null; then
/usr/bin/firefox -remote "openurl(${@}, new-tab)"
else
/usr/bin/firefox "$@"
fi
#v-
In this instance the pgrep does the same as the ping. I just call the
script from slrn as follows:
set_editor_command "openfox '%s' &"
--
David | AGM Favorites:
Don't talk to me about naval tradition. It's nothing but rum, sodomy and
the lash.
-- Winston Churchill
Technical Details
Message-ID:
<iqo1n1-2r1.ln1@news.gates_of_hell.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!newsfeed3.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!news.gates_of_hell.com!newsReferences:
<m6brm1-0o2.ln1@news.gates_of_hell.com> <CIHMRLNC38116.3303356481@Gilgamesh-Frog.org>Show Full Headers
Complete Article Headers
Message-ID: <iqo1n1-2r1.ln1@news.gates_of_hell.com> Subject: Re: [slrn] Tip for Firefox (Mozilla) Users Date: Sun, 09 May 2004 13:40:03 GMT From: SINNER <99nesorjd@gates_of_hell.invalid> References: <m6brm1-0o2.ln1@news.gates_of_hell.com> <CIHMRLNC38116.3303356481@Gilgamesh-Frog.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!newsfeed3.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!news.gates_of_hell.com!news Newsgroups: news.software.readers,alt.os.linux Organization: Hell.org Reply-To: 99nesorjd@gates_of_hell.invalid Followup-To: alt.os.linux X-Face: #sn6gF@jD*I3X; _)M5ymNQ1wG39y^'rxXRA5y-oi7.T/>P.P-40N\&-q'Mu+DWRSTF[}`Vtd85KnX\fe1~p-<(9U<zenv]u["swbx<^u; %a:ro>w=r"qdVdsY_@\.mDg9"ruPsYjX.Bi9M#gF-fG5=obWVG'>0W*w3RC User-Agent: slrn/0.9.8.0 (Linux) Lines: 41 X-Complaints-To: abuse@easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.