Article View: news.software.readers
Article #147867Re: [slrn] Tip for Firefox (Mozilla) Users
From: derelict
Date: Sun, 09 May 2004 05:58
Date: Sun, 09 May 2004 05:58
52 lines
3143 bytes
3143 bytes
On Fri, 07 May 2004 03:10:14 +0000, SINNER wrote:
> ["Followup-To:" header set to news.software.readers.]
> * SINNER wrote in news.software.readers:
>> Whenever I am in X and using slrn I frequently come across links within
>> news posts that I'd like to follow. Well even though I installed the Tab
>> Extensions and followed the instructions on the website, I could not get
>> a url selected using SHIFT-U to open in a new tab when the browser was
>> currently open. Instead I was always prompted to create another profile.
>
>> Here is the solution:
>
>> In your ~/.slrnrc
>
>> set Xbrowser "firefox -remote 'openurl('%s',new-tab)'&"
>
>> Works great. Made me so happy I thought I'd pass it on. Sorry if it was
>> obvious.
>
> Ehm, I should have bugtested it ;)
>
> If you dont have a browser opened, it fails. Back to the drawing board.
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.
---------------------------------------------------
#!/bin/sh
FIREBIRD_CMD="/usr/local/bin/MozillaFirefox/firefox"
if [ "$1x" = "x" ]; then
URL="about:blank"
else
URL=$1
fi
FIREBIRD_REMOTE="openURL(${URL},new-window)"
${FIREBIRD_CMD} -remote "ping()" && $FIREBIRD_CMD -remote ${FIREBIRD_REMOTE} && exit 0
${FIREBIRD_CMD} ${URL}
---------------------------------------------------
Technical Details
Message-ID:
<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.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!gnilink.net!newsfeed2.telusplanet.net!newsfeed.telus.net!cyclone.bc.net!news.alt.net!Gilgamesh-frogadmin.yi.org!not-for-mailReferences:
<m6brm1-0o2.ln1@news.gates_of_hell.com>Show Full Headers
Complete Article Headers
Message-ID: <CIHMRLNC38116.3303356481@Gilgamesh-Frog.org> Subject: Re: [slrn] Tip for Firefox (Mozilla) Users Date: Sun, 09 May 2004 05:58:10 +0000 From: derelict@ihatespam.com.invalid (derelict) References: <m6brm1-0o2.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.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!gnilink.net!newsfeed2.telusplanet.net!newsfeed.telus.net!cyclone.bc.net!news.alt.net!Gilgamesh-frogadmin.yi.org!not-for-mail Newsgroups: news.software.readers,alt.os.linux Comments: This message probably did not originate from the above address. It was automatically remailed by one or more anonymous mail services. You should NEVER trust ANY address on Usenet ANYWAYS: use PGP !!! Get information about complaints from the URL below X-Remailer-Contact: http://80.65.224.85/POL/ In case my abuse address is unreachable: It is because it has been flooded by <mgg@uiuc.edu>, please contact <abuse@uiuc.edu> Organization: Happy Lobster & Partners / LE Mail2News Lines: 52 X-Mail2News-Contact: http://80.65.224.85/