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. 