🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #147748

Re: [slrn] Tip for Firefox (Mozilla) Users

#147748
From: Jonathan A.
Date: Fri, 07 May 2004 08:17
51 lines
2640 bytes
On 7 May 2004 05:42:38 GMT, Michael C.
<mcsuper5@usol.com> appears to have said:

> On Fri, 07 May 2004 03:10:14 GMT,
> SINNER <99nesorjd@gates_of_hell.invalid> wrote:
>>
>>  Ehm, I should have bugtested it ;)
>>  
>>  If you dont have a browser opened, it fails. Back to the drawing board.
>>  
>
> I still use Mozilla, but I use: 
>
> set Xbrowser "(/usr/local/mozilla/mozilla -remote 'openurl(%s,new-tab)')||(/usr/local/mozilla/mozilla '%s') &"


Since there's always more than one way to skin a cat (looks around for
rec.pets.cats readers), I'll show you mine. I use a little startup
script that tests for a running mozilla, then calls a new mozilla, or a
"remote" one accordingly:

if pgrep -u "$USER" mozilla >/dev/null; then
  mozilla -remote "openurl(${@}, new-tab)"
else
  mozilla "$@"
fi

I named it opera_moz because I wrote it for calling mozilla from
within opera... it seems to work fine for slrn using:

set Xbrowser "opera_moz '%s'&"

I use a similar scriptlet for opera:

if pgrep -u "$USER" opera >/dev/null; then
  opera -remote "openURL(${@}, new-page)"
else
  opera "$@"
fi

The big advantage of all this, is that I don't have to remember to
get the syntax just right when I want to call opera or mozilla from
another app... all I need remember is "opera_moz" or "opera_remote."

My $0.02,
Jonathan

-- 
Don't just hit reply. Email address is broken. Thank
your friendly neighborhood spammer. Email replies to:
user: jnthn1                domain: earthlink<dot>net
Technical Details
Message-ID: <slrnc9mhh5.jlt.me@yomomma.example.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.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!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!feed.news.tiscali.de!fu-berlin.de!uni-berlin.de!not-for-mail
References: <5qarm1-hk2.ln1@news.gates_of_hell.com> <m6brm1-0o2.ln1@news.gates_of_hell.com> <slrnc9m8ed.hnk.mcsuper5@jaguar.softshoppe.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnc9mhh5.jlt.me@yomomma.example.net>
Subject: Re: [slrn] Tip for Firefox (Mozilla) Users
Date: Fri, 07 May 2004 08:17:36 +0000
From: "Jonathan A." <me@privacy.net>
References: <5qarm1-hk2.ln1@news.gates_of_hell.com> <m6brm1-0o2.ln1@news.gates_of_hell.com> <slrnc9m8ed.hnk.mcsuper5@jaguar.softshoppe.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.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!feed.news.tiscali.de!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Organization: Not today, maybe tomorrow.
Lines: 51
X-Complaints-To: http://news.individual.net/abuse.html
X-Trace: news.uni-berlin.de 2NDVtrsndho8db0IUfCqIQ5A8AMjEnSZ/EJ/1ih34yiFpHhrw3
X-No-Spam: please
X-No-Bananas: yes
User-Agent: slrn/0.9.8.0-jwk1 (Linux)