This is a discussion on kde/thunderbird/firefox --> one last step? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Okay, I want thunderbird & firefox to "cooperate" under kde, so I did the following, as I read in ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Okay, I want thunderbird & firefox to "cooperate" under kde, so I did the following, as I read in earlier posts: In thunderbird: network.protocol-handler.app.http --> mozilla-firefox (same for https) In firefox network.protocol-handler.app.mailto --> mozilla-thunderbird And... it works, up to a point. If I click a web link in an email message, firefox starts up and displays the link. If I open another link, however, with firefox sitll open, rather than opening the new link in a new tab (as I've set in firefox preferences), or even in a new window, or replacing the current window, a new copy of firefox is spawned (? usage) and I'm asked to choose a profile. Is there a way to avoid this? BTW: I've also set up kde to use firefox as the first browser and thunderbird as the email client. Thanks! Nick. |
| |||
| Nick wrote: > Okay, I want thunderbird & firefox to "cooperate" under kde, so I did > the following, as I read in earlier posts: > In thunderbird: > network.protocol-handler.app.http --> mozilla-firefox > (same for https) > In firefox > network.protocol-handler.app.mailto --> mozilla-thunderbird > > And... it works, up to a point. If I click a web link in an email > message, firefox starts up and displays the link. If I open another > link, however, with firefox sitll open, rather than opening the new link > in a new tab (as I've set in firefox preferences), or even in a new > window, or replacing the current window, a new copy of firefox is > spawned (? usage) and I'm asked to choose a profile. Is there a way to > avoid this? > > BTW: I've also set up kde to use firefox as the first browser and > thunderbird as the email client. > > Thanks! > > Nick. Try this quick little script. It should eliminate the request for a new profile. - - - - #!/bin/sh -x /usr/local/firefox/firefox -a firefox -remote "openURL($1,new-window)" || /usr/local/firefox/firefox $1 & - - - - Note, you will have to replace '/usr/local/firefox/firefox' text with your actual path to the firefox executable. I have this script in my /usr/local/bin directory (which is in my $PATH). -- humjohn AT aerosurf DOT net |
| |||
| HJohnson wrote: >> And... it works, up to a point. If I click a web link in an email >> message, firefox starts up and displays the link. If I open another >> link, however, with firefox sitll open, rather than opening the new >> link in a new tab (as I've set in firefox preferences), or even in a >> new window, or replacing the current window, a new copy of firefox is >> spawned (? usage) and I'm asked to choose a profile. Is there a way to >> avoid this? > > Try this quick little script. It should eliminate the request for a new > profile. > > - - - - > > #!/bin/sh -x > /usr/local/firefox/firefox -a firefox -remote "openURL($1,new-window)" > || /usr/local/firefox/firefox $1 & > > - - - - > > Note, you will have to replace '/usr/local/firefox/firefox' text with > your actual path to the firefox executable. I have this script in my > /usr/local/bin directory (which is in my $PATH). > Didn't work, but I may have messed up: I changed /usr/local/firefox/firefox to /usr/lib/mozilla-firefox/firefox which is where the package from linuxpackages installed it. I named the script mozilla-firefox, made it executable, and placed it into /usr/local/bin, which is the first directory in my path. Now, no browser opens at all when I click on a link in thunderbird. > > |
| |||
| Nick wrote: > HJohnson wrote: > >>> And... it works, up to a point. If I click a web link in an email >>> message, firefox starts up and displays the link. If I open another >>> link, however, with firefox sitll open, rather than opening the new >>> link in a new tab (as I've set in firefox preferences), or even in a >>> new window, or replacing the current window, a new copy of firefox is >>> spawned (? usage) and I'm asked to choose a profile. Is there a way >>> to avoid this? > > >> >> Try this quick little script. It should eliminate the request for a >> new profile. >> >> - - - - >> >> #!/bin/sh -x >> /usr/local/firefox/firefox -a firefox -remote "openURL($1,new-window)" >> || /usr/local/firefox/firefox $1 & >> >> - - - - >> >> Note, you will have to replace '/usr/local/firefox/firefox' text with >> your actual path to the firefox executable. I have this script in my >> /usr/local/bin directory (which is in my $PATH). >> > Didn't work, but I may have messed up: I changed > /usr/local/firefox/firefox to /usr/lib/mozilla-firefox/firefox which is > where the package from linuxpackages installed it. I named the script > mozilla-firefox, made it executable, and placed it into /usr/local/bin, > which is the first directory in my path. Now, no browser opens at all > when I click on a link in thunderbird. > > >> >> Hrm....my cut and paste blew it. The second and third lines should be all in the second line of the script. The "||" should have a single space on each side of it. (Word wrap did it to me again.) The script is actually a two line thing. And I have been using this since Firefox ver. 0.7, in order to eliminate the "Choose a Profile" warning. -- humjohn AT aerosurf DOT net |
| |||
| >> Didn't work, but I may have messed up: I changed >> /usr/local/firefox/firefox to /usr/lib/mozilla-firefox/firefox which >> is where the package from linuxpackages installed it. I named the >> script mozilla-firefox, made it executable, and placed it into >> /usr/local/bin, which is the first directory in my path. Now, no >> browser opens at all when I click on a link in thunderbird. >> >> >>> >>> > Hrm....my cut and paste blew it. The second and third lines should be > all in the second line of the script. The "||" should have a single > space on each side of it. (Word wrap did it to me again.) > I figured that should be on one line, but still no joy. I also tried (as root) chmod +777 /usr/local/bin/mozilla-firefox, but no joy. Here is my complete version, with changes for my install dir.: #!/bin/sh -x /usr/lib/mozilla-firefox/firefox -a firefox -remote "openURL($1,new-window)" || /usr/lib/mozilla-firefox/firefox $1 & and despite appearances, that's two lines Nick. |
| |||
| Nick wrote: > >>> Didn't work, but I may have messed up: I changed >>> /usr/local/firefox/firefox to /usr/lib/mozilla-firefox/firefox which >>> is where the package from linuxpackages installed it. I named the >>> script mozilla-firefox, made it executable, and placed it into >>> /usr/local/bin, which is the first directory in my path. Now, no >>> browser opens at all when I click on a link in thunderbird. >>> >>> >>>> >>>> >> Hrm....my cut and paste blew it. The second and third lines should be >> all in the second line of the script. The "||" should have a single >> space on each side of it. (Word wrap did it to me again.) >> > > I figured that should be on one line, but still no joy. I also tried (as > root) chmod +777 /usr/local/bin/mozilla-firefox, but no joy. Here is my > complete version, with changes for my install dir.: > > #!/bin/sh -x > /usr/lib/mozilla-firefox/firefox -a firefox -remote > "openURL($1,new-window)" || /usr/lib/mozilla-firefox/firefox $1 & > > and despite appearances, that's two lines > > Nick. > I got my firefox from mozilla. Installed it in the path '/usr/local/firefox' (did not let it default to the install directory.) So, my installation is complete, from Mozilla, while yours came from the Linuxpackages web site. Makes me think something was missing from your package? Just my 2 cents -- humjohn AT aerosurf DOT net |
| |||
| On Thu, 20 Jan 2005 17:51:10 -0600, Nick wrote: > >>> Didn't work, but I may have messed up: I changed >>> /usr/local/firefox/firefox to /usr/lib/mozilla-firefox/firefox which is >>> where the package from linuxpackages installed it. I named the script >>> mozilla-firefox, made it executable, and placed it into /usr/local/bin, >>> which is the first directory in my path. Now, no browser opens at all >>> when I click on a link in thunderbird. Well, try this script then, Nick. (I put a line number in front of each line so you can tell if it gets wrapped by a news reader.) I got it from here or maybe a.o.l.mandrake, and I don't know if it will work with Thunderbird, but it works with Pan. It opens a new window if Firebird isn't running, or opens a new tab if Firebird is running, but I think you can figure out how to change it if you want a new window every time. 1)#!/bin/sh 2)MOZILLA="/usr/lib/firefox/firefox" 3)if $MOZILLA -a firefox -remote "ping()" 2>/dev/null 4)then 5)echo "Mozilla already launch" 6)location=",new-tab" 7)exec $MOZILLA -a firefox -remote "openURL($1$location)" 8)else 9)exec $MOZILLA "$@" 10)fi 11)exit 1 -- Chick Tower For e-mail: aols . sent . towerboy AT xoxy . net |
| |||
| > 1)#!/bin/sh > 2)MOZILLA="/usr/lib/firefox/firefox" > 3)if $MOZILLA -a firefox -remote "ping()" 2>/dev/null > 4)then > 5)echo "Mozilla already launch" > 6)location=",new-tab" > 7)exec $MOZILLA -a firefox -remote "openURL($1$location)" > 8)else > 9)exec $MOZILLA "$@" > 10)fi > 11)exit 1 > That works a treat! Thanks to both reponders; I'll give this a try for a few days & report back. Nick. |
| ||||
| I'd like to wrap up the thread that started with my post: > Okay, I want thunderbird & firefox to "cooperate" under kde, so I did > the following, as I read in earlier posts: > In thunderbird: > network.protocol-handler.app.http --> mozilla-firefox > (same for https) > In firefox > network.protocol-handler.app.mailto --> mozilla-thunderbird > > And... it works, up to a point. If I click a web link in an email > message, firefox starts up and displays the link. If I open another > link, however, with firefox sitll open, rather than opening the new link > in a new tab (as I've set in firefox preferences), or even in a new > window, or replacing the current window, a new copy of firefox is > spawned (? usage) and I'm asked to choose a profile. Is there a way to > avoid this? With help from HJohnson and CTower, I have a solution. HJohnson suggested that my installation might be broken, and CTower suggested that the script I was using was incorrect. It turned out that both were right... I re-installed both firefox and thunderbird into /opt using the distributions right from mozilla.org rather than the slackware packages from linuxpackages. And I tried: In thunderbird: network.protocol-handler.app.http --> /opt/firefox/firefox (same for https) In firefox network.protocol-handler.app.mailto --> /opt/thunderbird/thunderbird And it "just works." No additional scripts needed at all. If I open a web link from thunderbird, and firefox is already open, it opens a new tab. Clicking a mailto: link in firefox opens a new compose window in thunderbird whether or not its running. Nick is happy; thanks for all the help! N |