Re: Iceweasel - and Tabs - [Is NOT Solved]

According to man iceweasel the option you want is '-new-tab' not '--new-tab'
I don't know if that makes any difference...

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo

Re: Iceweasel - and Tabs - [Is NOT Solved]

johnraff wrote:

According to man iceweasel the option you want is '-new-tab' not '--new-tab'
I don't know if that makes any difference...

OK, I changed that to '-new-tab'

#! /bin/bash

# original line in clawsmail: firefox '%s'

if pgrep firefox > /dev/null; then # check if iceweasel is running
  iceweasel -new-tab $1    # if so open in new tab of existing window
else
  iceweasel   # else start new process
  sleep 1   # may need a delay, don't know, fiddle
  iceweasel -new-tab $1
fi

and tried it in terminal:

 Fri Jul 23,  16:27:02 up  7:32,  2 users,  load average: 0.03, 0.06, 0.04
 Today is Prickle-Prickle, the 58th day of Confusion in the YOLD 3176 
 Sector11 working in: ~
 0 $ icew www.google.com

 Fri Jul 23,  16:27:32 up  7:32,  2 users,  load average: 0.16, 0.08, 0.04
 Today is Prickle-Prickle, the 58th day of Confusion in the YOLD 3176 
 Sector11 working in: ~
 0 $

It opens my homepage ... I wait a while ... nothing.
Close IW and 1 second later it opens Google. - Go figure.

So I open Claws (Configured to use External browser: icew {I had changed it back to: firefox '%s'}) and click on the link to bring me here.

IW opens here, no home page.  Copy this part of the message to gedit and will re-configure Claws to use:  "icew '%2'"

Back ... IW opened at my homepage and put the breaks on.  Closed IW and 1 second later here I am - pasted in my response - and added the ending.  big_smile

Re: Iceweasel - and Tabs - [Is NOT Solved]

Try this:

#! /bin/bash

# original line in clawsmail: firefox '%s'

if pgrep firefox > /dev/null; then # check if iceweasel is running
  iceweasel -new-tab $1    # if so open in new tab of existing window
else
  iceweasel &  # else start new process
  sleep 1   # may need a delay, don't know, fiddle
  iceweasel -new-tab $1
fi
Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Iceweasel - and Tabs - [Is NOT Solved]

anonymous wrote:

Try this:

#! /bin/bash

# original line in clawsmail: firefox '%s'

if pgrep firefox > /dev/null; then # check if iceweasel is running
  iceweasel -new-tab $1    # if so open in new tab of existing window
else
  iceweasel &  # else start new process
  sleep 1   # may need a delay, don't know, fiddle
  iceweasel -new-tab $1
fi

OK, that, in a terminal, works like a dream.

  17:12:27 up  8:17,  2 users,  load average: 0.08, 0.08, 0.08
  Fri Jul 23 and working in: ~
  0 $ icew www.google.com

  17:12:43 up  8:18,  2 users,  load average: 0.06, 0.07, 0.08
  Fri Jul 23 and working in: ~
  0 $ 

opening home and Google.

In claws, it opens just the link, no homepage.

I see why ... this line:

  iceweasel &  # else start new process

is grabbing the link from claws.

Last edited by Sector11 (2010-07-23 20:19:02)

Re: Iceweasel - and Tabs - [Is NOT Solved]

You are NOT going to believe this.....

[Solved]

I have it working.  big_smile

In Clawsmail > Configuration > Preferences > External Programs > Web browser:

firefox 'file:///home/sector11/Websites/S11/Sector11.html' '%s'

lol

Which only goes to prove once more that as human beings we always try to complicate the simple things.

And my wife asked why I was laughing.  roll

OH darn it ... look down one post!

Last edited by Sector11 (2010-07-24 14:11:25)

Re: Iceweasel - and Tabs - [Is NOT Solved]

^How about if you open several links from claws? Don't you get multiple Sector11.html pages too?

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo

Re: Iceweasel - and Tabs - [Is NOT Solved]

johnraff wrote:

^How about if you open several links from claws? Don't you get multiple Sector11.html pages too?

I just tested that ... oh well, back to the drawing board....  and to modify the first post.

Re: Iceweasel - and Tabs - [Is NOT Solved]

(sorry)

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo

Re: Iceweasel - and Tabs - [Is NOT Solved]

Has anyone seen the PuppyLinux browser?  It's basically just a customized UI of FFX.  I think it would be a great way to present FFX/Weasel in Statler though since it's very streamlined, the buttons and everything.  It feels even more compact than chromium/kazehakase, not as much as vimperator, but I know a lot of people don't like the Vi bindings.

Run tell that, homeboy.  -Antoine Dodson

Re: Iceweasel - and Tabs - [Is NOT Solved]

johnraff wrote:

(sorry)

What are you sorry for, you've been scripting your little editor our trying to help.  And that's 90% there.

Unless of course your did something to my IW so it would do that and you could bring bad news?

Naaaa didn't think so.  lol

Re: Iceweasel - and Tabs - [Is NOT Solved]

rstrcogburn wrote:

Has anyone seen the PuppyLinux browser?  It's basically just a customized UI of FFX.  I think it would be a great way to present FFX/Weasel in Statler though since it's very streamlined, the buttons and everything.  It feels even more compact than chromium/kazehakase, not as much as vimperator, but I know a lot of people don't like the Vi bindings.

Nope, never seen it. Probably need PL to see that  smile

Now if I only knew what "vi bindings" were....

Is there a KittyLitter ... er ... Linux out there?  lol

Re: Iceweasel - and Tabs - [Is NOT Solved]

I wanna get PuppyLinux just to make Michael Vick the background image, does that make me a bad or horrible person?

XFCE User ~ Linux Abuser ~ Rubbish Refuser
[img]http://achievements.schrankmonster.de/Achievement.aspx?text=First%20Tiling%20WM%20-%2050G[/img]

Re: Iceweasel - and Tabs - [Is NOT Solved]

Sector11 wrote:

Now if I only knew what "vi bindings" were....

I believe he means the keyboard shortcuts used by the vi editor.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Iceweasel - and Tabs - [Is NOT Solved]

anonymous wrote:
Sector11 wrote:

Now if I only knew what "vi bindings" were....

I believe he means the keyboard shortcuts used by the vi editor.

calmly shaking head - why vi when there is emacs?

Just KIDDING! - I don't use either - no flame war please lol

Re: Iceweasel - and Tabs - [Is NOT Solved]

Sector11 wrote:
johnraff wrote:

(sorry)

What are you sorry for, you've been scripting your little editor our trying to help.  And that's 90% there.

Unless of course your did something to my IW so it would do that and you could bring bad news?

Naaaa didn't think so.  lol

No, I guess just sorry for the malicious pleasure I might have felt a tweak of in pointing out your nice fix wasn't going  to work...

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo

Re: Iceweasel - and Tabs - [Is NOT Solved]

johnraff wrote:
Sector11 wrote:
johnraff wrote:

(sorry)

What are you sorry for, you've been scripting your little editor our trying to help.  And that's 90% there.

Unless of course your did something to my IW so it would do that and you could bring bad news?

Naaaa didn't think so.  lol

No, I guess just sorry for the malicious pleasure I might have felt a tweak of in pointing out your nice fix wasn't going  to work...

Now that is just plain BAD - Rotten Horrible and REALLY BAD!

I like it!  lol

Re: Iceweasel - and Tabs - [Is NOT Solved]

Sector11, is this still bothering you? If so, is it because when you click on an email link it wipes out the content of the existing tab  (Sector11.html)? In that case, there's a little extension you could try called Restore Open_External that lets you set externally called links to be opened in a new tab in the background. (I had this issue when upgrading to Fx3.6 and that extension does it for me on #!9.04.) Then you just have to start Iceweasel/Firefox before your mail app. smile

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo

Re: Iceweasel - and Tabs - [Is NOT Solved]

From the screenshot of that extension, it seems its already the default setting to open the link in a new tab though?

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Iceweasel - and Tabs - [Is NOT Solved]

You're right. That extension comes in useful if you've set the browser to open all links in the same tab, even if the web page specifies a new page. This is done by setting 'browser.link.open_newwindow' to '1' in about:config or user.js A lot of people prefer to open new tabs only when they want one, not when the web page dev thinks they ought to have one. However the downside is that that setting makes external links open in the same tab too, wiping out the existing content. The extension I mentioned lets you have a different option for external links.

However I've just discovered it's not available for Fx 3.5 (Iceweasel on Statler)... sad

Anyway, I guess if Sector11's not doing that same-tab thing then, as you say, external links will already be opening in new tabs. neutral

Last edited by johnraff (2010-07-30 05:12:26)

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo

Re: Iceweasel - and Tabs - [Is NOT Solved]

johnraff wrote:

You're right. That extension comes in useful if you've set the browser to open all links in the same tab, even if the web page specifies a new page. This is done by setting 'browser.link.open_newwindow' to '1' in about:config or user.js A lot of people prefer to open new tabs only when they want one, not when the web page dev thinks they ought to have one. However the downside is that that setting makes external links open in the same tab too, wiping out the existing content. The extension I mentioned lets you have a different option for external links.

However I've just discovered it's not available for Fx 3.5 (Iceweasel on Statler)... sad

Anyway, I guess if Sector11's not doing that same-tab thing then, as you say, external links will already be opening in new tabs. neutral

Just caught this, been busy all day.  Yea, clicking on a link in my mail starts IW with that link running.  IF IW was already running it does open in a new tab, and that's what I have been doing for the past little while.  It's a bother but it's the only way it works.