🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
17 messages
17 total messages Started by SINNER Fri, 07 May 2004 03:04
[slrn] Tip for Firefox (Mozilla) Users
#147732
Author: SINNER
Date: Fri, 07 May 2004 03:04
18 lines
1888 bytes
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.

-- 
David                  
Dr. Jekyll had something to Hyde.
Re: [slrn] Tip for Firefox (Mozilla) Users
#147733
Author: SINNER
Date: Fri, 07 May 2004 03:10
24 lines
2167 bytes
["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.

-- 
David                  
over in west Philadelphia a puppy is vomiting ...
Re: [slrn] Tip for Firefox (Mozilla) Users
#147744
Author: sas
Date: Fri, 07 May 2004 05:26
27 lines
2390 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.

You might find this page useful:
http://jodrell.net/gnome-hacks/hacks.html?id=48

Re: [slrn] Tip for Firefox (Mozilla) Users
#147746
Author: Michael C.
Date: Fri, 07 May 2004 05:42
35 lines
2214 bytes
On Fri, 07 May 2004 03:10:14 GMT,
SINNER <99nesorjd@gates_of_hell.invalid> 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.
>  
I still use Mozilla, but I use: 

set Xbrowser "(/usr/local/mozilla/mozilla -remote 'openurl(%s,new-tab)')||(/usr/local/mozilla/mozilla '%s') &"

HTH,

Michael C.
-- 
mcsuper5@usol.com http://mcsuper5.freeshell.org/
Registered Linux User #303915 http://counter.li.org/

Re: [slrn] Tip for Firefox (Mozilla) Users
#147748
Author: 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
Re: [slrn] Tip for Firefox (Mozilla) Users
#147756
Author: SINNER
Date: Fri, 07 May 2004 11:59
40 lines
2607 bytes
* Jonathan A. wrote in news.software.readers:
> On 7 May 2004 05:42:38 GMT, Michael C.
><mcsuper5@usol.com> appears to have said:

[...]

> 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."

WOW! Nice, exactly what I was shooting for. Thanks!

-- 
David                  
I wonder if I ought to tell them about my PREVIOUS LIFE as a COMPLETE
STRANGER?
Re: [slrn] Tip for Firefox (Mozilla) Users
#147758
Author: SINNER
Date: Fri, 07 May 2004 12:00
16 lines
1732 bytes
* Michael C. wrote in news.software.readers:
> On Fri, 07 May 2004 03:10:14 GMT,
> SINNER <99nesorjd@gates_of_hell.invalid> wrote:

[...]

> I still use Mozilla, but I use: 

> set Xbrowser "(/usr/local/mozilla/mozilla -remote 'openurl(%s,new-tab)')||(/usr/local/mozilla/mozilla '%s') &"

I tried to get the || working last night, thanks!

-- 
David                
innovate, v.:
	To annoy people.
Re: [slrn] Tip for Firefox (Mozilla) Users
#147759
Author: Jonathan A.
Date: Fri, 07 May 2004 13:12
28 lines
2217 bytes
On Fri, 07 May 2004 11:59:48 GMT, SINNER
<99nesorjd@gates_of_hell.invalid> appears to have said:

> * Jonathan A. wrote in news.software.readers:
>>
>> 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."
>
> WOW! Nice, exactly what I was shooting for. Thanks!
>

Happy to help. I was having a hell of a time trying to get the syntax
right for slrn and a couple of other apps to pass URL's to opera and/or
mozilla when I did those little scripts. Seemed like every app wanted
the parentheses and the variables quoted or escaped just a little bit
differently than another.

It finally occurred to me that I should just bang out a couple quick
little startup scripts and, voila! No more pain. :)

ciao,
Jonathan

-- 
Don't just hit reply. Email address is broken. Thank
your friendly neighborhood spammer. Email replies to:
user: jnthn1                domain: earthlink<dot>net
Re: [slrn] Tip for Firefox (Mozilla) Users
#147761
Author: Rinaldi J. Montessi
Date: Fri, 07 May 2004 14:20
28 lines
2378 bytes
On Fri, 07 May 2004 03:10:14 GMT, 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.

There's a couple ways around that.  You can test for the mozilla PID file or
just use a || function to open mozilla at the %s URL

Rinaldi
-- 
New systems generate new problems.
Re: [slrn] Tip for Firefox (Mozilla) Users
#147769
Author: DC
Date: Fri, 07 May 2004 17:38
21 lines
1936 bytes
SINNER wrote:
> * Michael C. wrote in news.software.readers:
>> On Fri, 07 May 2004 03:10:14 GMT,
>> SINNER <99nesorjd@gates_of_hell.invalid> wrote:

> [...]

>> I still use Mozilla, but I use: 

>> set Xbrowser "(/usr/local/mozilla/mozilla -remote 'openurl(%s,new-tab)')||(/usr/local/mozilla/mozilla '%s') &"

> I tried to get the || working last night, thanks!

set Xbrowser "soundwrapper /usr/bin/mozilla -remote 'openurl(%s,new-tab)'||/usr/bin/mozilla '%s' &"

Here's mine (mind the wrap).

-- 
DC           Linux RU #1000111011000111001

Free your mind, and your OS will follow...
Re: [slrn] Tip for Firefox (Mozilla) Users
#147768
Author: SINNER
Date: Fri, 07 May 2004 18:05
26 lines
1984 bytes
* DC Wrote in news.software.readers:

> SINNER wrote:
>> * Michael C. wrote in news.software.readers:
>>> On Fri, 07 May 2004 03:10:14 GMT,
>>> SINNER <99nesorjd@gates_of_hell.invalid> wrote:
> 
>> [...]
> 
>>> I still use Mozilla, but I use: 
> 
>>> set Xbrowser "(/usr/local/mozilla/mozilla -remote
>>> 'openurl(%s,new-tab)')||(/usr/local/mozilla/mozilla '%s') &" 
> 
>> I tried to get the || working last night, thanks!
> 
> set Xbrowser "soundwrapper /usr/bin/mozilla -remote
> 'openurl(%s,new-tab)'||/usr/bin/mozilla '%s' &" 
> 
> Here's mine (mind the wrap).
> 

Hmmm, Why the soundwrapper?

-- 
David
Re: [slrn] Tip for Firefox (Mozilla) Users
#147772
Author: DC
Date: Fri, 07 May 2004 18:12
40 lines
2450 bytes
SINNER wrote:
> * DC Wrote in news.software.readers:

>> SINNER wrote:
>>> * Michael C. wrote in news.software.readers:
>>>> On Fri, 07 May 2004 03:10:14 GMT,
>>>> SINNER <99nesorjd@gates_of_hell.invalid> wrote:

>>> [...]

>>>> I still use Mozilla, but I use: 

>>>> set Xbrowser "(/usr/local/mozilla/mozilla -remote
>>>> 'openurl(%s,new-tab)')||(/usr/local/mozilla/mozilla '%s') &" 

>>> I tried to get the || working last night, thanks!

>> set Xbrowser "soundwrapper /usr/bin/mozilla -remote
>> 'openurl(%s,new-tab)'||/usr/bin/mozilla '%s' &" 

>> Here's mine (mind the wrap).


> Hmmm, Why the soundwrapper?

I can't remember when I added that, but ISTR that any links to
shockwave/flash wouldn't have sound.

I just looked at the way MDK's default Mozilla menu item called
Mozilla[1] and fudged it.

All I know is that, now, I have no sound probs.


[1] soundwrapper /usr/bin/mozilla %u

-- 
DC           Linux RU #1000111011000111001

Free your mind, and your OS will follow...
Re: [slrn] Tip for Firefox (Mozilla) Users
#147790
Author: SINNER
Date: Sat, 08 May 2004 01:19
32 lines
2417 bytes
* DC wrote in news.software.readers:
> SINNER wrote:
>> * Michael C. wrote in news.software.readers:
>>> On Fri, 07 May 2004 03:10:14 GMT,
>>> SINNER <99nesorjd@gates_of_hell.invalid> wrote:

>> [...]

>>> I still use Mozilla, but I use: 

>>> set Xbrowser "(/usr/local/mozilla/mozilla -remote 'openurl(%s,new-tab)')||(/usr/local/mozilla/mozilla '%s') &"

>> I tried to get the || working last night, thanks!

> set Xbrowser "soundwrapper /usr/bin/mozilla -remote 'openurl(%s,new-tab)'||/usr/bin/mozilla '%s' &"

> Here's mine (mind the wrap).

If firefox isnt opened it draws an error message and then does its
thing, I think you need to redirect standard error by adding a
2>/dev/null before the ||

In any event I went with the script posted above, but thank you as
always DC.

-- 
David                  | AGM Favorites:
Death comes on every passing breeze,
He lurks in every flower;
Each season has its own disease,
Its peril -- every hour.
	--Reginald Heber
Re: [slrn] Tip for Firefox (Mozilla) Users
#147867
Author: derelict
Date: Sun, 09 May 2004 05:58
52 lines
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}
---------------------------------------------------


Re: [slrn] Tip for Firefox (Mozilla) Users
#147889
Author: SINNER
Date: Sun, 09 May 2004 13:40
41 lines
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
    
Re: [slrn] Tip for Firefox (Mozilla) Users
#147903
Author: Keith
Date: Sun, 09 May 2004 14:38
37 lines
2294 bytes
On Fri, 07 May 2004 03:04:20 GMT, 
SINNER <99nesorjd@gates_of_hell.invalid> wrote:
> 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.
>

#!/bin/bash
#mozilla -remote 'openURL($1, new-tab)'
#mozilla -remote openURL\($1,new-tab\)
browserPath="/usr/local/mozilla/mozilla"
#browserPath="/usr/bin/mozilla"
url="$@"
$browserPath -remote "ping()"
# $? = false if running, true if not
if [ $? = 0 ] ; then
        exec $browserPath -remote openURL"($url,new-tab)"
else
        $browserPath $url &
fi
exit

-- 
Best Regards,  Keith http://kilowatt-radio.org/
Pax melior est quam iustissimum bellum.
Replace spam.471c43f0 with wvi dot com & remove all _
Re: [slrn] Tip for Firefox (Mozilla) Users
#147904
Author: SINNER
Date: Sun, 09 May 2004 14:59
28 lines
2117 bytes
["Followup-To:" header set to alt.os.linux.]
* Keith wrote in alt.os.linux:

[..]

> #!/bin/bash
> #mozilla -remote 'openURL($1, new-tab)'
> #mozilla -remote openURL\($1,new-tab\)
> browserPath="/usr/local/mozilla/mozilla"
> #browserPath="/usr/bin/mozilla"
> url="$@"
> $browserPath -remote "ping()"
> # $? = false if running, true if not
> if [ $? = 0 ] ; then
>         exec $browserPath -remote openURL"($url,new-tab)"
> else
>         $browserPath $url &
> fi
> exit

Thanks, I posted my solution earler today. A bit smaller and possibly
less elegant but it works and its only 4 lines ;)

-- 
David     
party, n.:
	A gathering where you meet people who drink
	so much you can't even remember their names.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads