I have just started using Firefox as my somewhat default browser in KDE. Is there a way to make Kmail open a new tab in Firefox instead of a new window when I click a link in an email. TIA, Darrell
* Darrell Cormier <linuxdev@sptc.net> [10-27-04 10:19]:
I have just started using Firefox as my somewhat default browser in KDE. Is there a way to make Kmail open a new tab in Firefox instead of a new window when I click a link in an email.
From the command line:
firefox --help and/or mozilla --help -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
On Wednesday 27 October 2004 05:34 pm, Patrick Shanahan wrote:
* Darrell Cormier <linuxdev@sptc.net> [10-27-04 10:19]:
I have just started using Firefox as my somewhat default browser in KDE. Is there a way to make Kmail open a new tab in Firefox instead of a new window when I click a link in an email.
From the command line:
firefox --help
and/or
mozilla --help
Patrick, Thanks but it is still not working for me. Maybe I am missing something. It appears that I would need to incorporate the -remote option on firefox i.e. : firefox -remote "openurl(http://www.mapquest.com)" however I have tried this from the same konsole session and get the a "No running window found" error. Example: ~> firefox ~> firefox -remote "openurl(http://www.mapquest.com)" Error: No running window found I also tried to set the KDE kcontrol -> File Associations so that the firefox command was: firefox -remote %u but nothing happens. Maybe I am missing something. I went to:http://www.mozilla.org/unix/remote.html but didn't find any help. Google has not revealed a solution for me yet either. Any ideas on what I am doing wrong? Thanks, Darrell
* Darrell Cormier <linuxdev@sptc.net> [10-28-04 12:47]:
Thanks but it is still not working for me. Maybe I am missing something. It appears that I would need to incorporate the -remote option on firefox i.e. : firefox -remote "openurl(http://www.mapquest.com)" however I have tried this from the same konsole session and get the a "No running window found" error. Example:
~> firefox ~> firefox -remote "openurl(http://www.mapquest.com)" Error: No running window found
'-remote' will only open a window *if* you already have an instance of firefox open. -remote <command> Execute <command> in an already running Mozilla process.
I also tried to set the KDE kcontrol -> File Associations so that the firefox command was: firefox -remote %u
above
but nothing happens. Maybe I am missing something. I went to:http://www.mozilla.org/unix/remote.html but didn't find any help.
well, this is the correct place. It explains 'remote' I use "firefox -remote 'openURL(about:blank, new-window)'" _but_, I always open an instance of firefox when I boot so the 'remote' command *will* work. doez this make it clear? -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
* Patrick Shanahan <paka@wahoo.no-ip.org> [10-28-04 17:33]:
I use "firefox -remote 'openURL(%s, new-window)'"
_but_, I always open an instance of firefox when I boot so the 'remote' command *will* work.
doez this make it clear?
addendum: to open a *new* tab, I open a new *window*, change 'new-window' to 'new-tab', ie: firefox -remote 'openURL(%s, new-tab)' -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
On Thursday 28 October 2004 05:33 pm, Patrick Shanahan wrote:
* Darrell Cormier <linuxdev@sptc.net> [10-28-04 12:47]: <snip>
~> firefox ~> firefox -remote "openurl(http://www.mapquest.com)" Error: No running window found
'-remote' will only open a window *if* you already have an instance of firefox open.
-remote <command> Execute <command> in an already running Mozilla process.
Thank you Patrick but I understood that. That is why I listed both commands above. First one opened Firefox and the second tried the -remote <command> sequence. Still get the error.
I also tried to set the KDE kcontrol -> File Associations so that the firefox command was: firefox -remote %u
above
but nothing happens. Maybe I am missing something. I went to:http://www.mozilla.org/unix/remote.html but didn't find any help.
well, this is the correct place. It explains 'remote'
I use "firefox -remote 'openURL(about:blank, new-window)'"
_but_, I always open an instance of firefox when I boot so the 'remote' command *will* work.
I have tried the command with the ", new-window)" and the ", new-tab)" qualifiers. Still no different.
doez this make it clear?
' as a bell.
-- Patrick Shanahan Registered Linux User #207535
<inclusion of Randall R. Schulz response>
I assume you've dealt with the basic file association so that instead of Konqueror your HTTP URLs are being sent to Firefox. The refinement you need is this (or something like it):
Command: /usr/local/bin/mozilla -remote "openURL(%u)"
Thanks Randall, Yes the file association has Firefox on the top of the list. I have tried this command as well. Then when I click a link in Kmail I get the little bouncing firefox icon like it is trying to satisfy my request but then nothing happens and my current open window of firefox does not change. I have tried the following five in kcontrol: /usr/bin/firefox -remote 'openURL(%u,new-tab)' /usr/bin/firefox -remote 'openURL(%s,new-tab)' /usr/bin/firefox -remote "openURL(%u,new-tab)" /usr/bin/firefox -remote "openURL(%s,new-tab)" /usr/bin/firefox -remote "openURL(%u)" Here is a snippet from ps -ef to show that firefox is running: gunner 5199 4889 0 07:56 ? 00:00:03 /opt/MozillaFirefox/lib/firefox-bin gunner 5408 5039 0 08:03 ? 00:00:00 ispell -a -S -C along with some additional attempts from the command line to see if it will work: ~> /usr/bin/firefox -remote "openURL (http://mapquest.com, new-tab)" Error: No running window found ~> /usr/bin/firefox -remote 'openURL (http://mapquest.com, new-tab)' Error: No running window found ~> /usr/bin/firefox -remote 'openURL (about:blank, new-tab)' Error: No running window found ~> /usr/bin/firefox -remote 'openURL (mapquest.com, new-tab)' Error: No running window found ~> /usr/bin/firefox -remote 'openURL (mapquest.com, new-window)' Error: No running window found ~> /usr/bin/firefox -remote "openURL (mapquest.com, new-window)" Error: No running window found ~> /usr/bin/firefox -remote "openURL (about:blank,new-tab)" Error: No running window found Still no luck. I don't guess it is all that important, but it would sure be nice to open tabs instead of a bunch of windows. Darrell C.
* Darrell Cormier <linuxdev@sptc.net> [10-29-04 08:30]:
/usr/bin/firefox -remote 'openURL(%u,new-tab)' /usr/bin/firefox -remote 'openURL(%s,new-tab)'
open a session of firefox open a shell window and within that window issue the 'remote' commands listed above post the results -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
On Friday 29 October 2004 09:23 am, Patrick Shanahan wrote:
* Darrell Cormier <linuxdev@sptc.net> [10-29-04 08:30]:
/usr/bin/firefox -remote 'openURL(%u,new-tab)' /usr/bin/firefox -remote 'openURL(%s,new-tab)'
open a session of firefox open a shell window and within that window issue the 'remote' commands listed above
post the results
-- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
I am assuming by "shell window" you mean something like xterm or konsole. In an xterm window I issued the following with the same results as mentioned in the previous post: :~> /usr/bin/firefox -remote 'openURL(%u,new-tab)' Error: No running window found :~> /usr/bin/firefox -remote 'openURL(%s,new-tab)' Error: No running window found :~> /usr/bin/firefox -remote 'openURL(mapquest.com,new-tab)' Error: No running window found :~> /usr/bin/firefox -remote 'openURL(www.mapquest.com,new-tab)' Error: No running window found :~> /usr/bin/firefox -remote 'openURL(www.mapquest.com,new-tab)' Error: No running window found Darrell
* Darrell Cormier <linuxdev@sptc.net> [10-29-04 09:50]:
I am assuming by "shell window" you mean something like xterm or konsole.
xterm is a shell window as is konsole
In an xterm window I issued the following with the same results as mentioned in the previous post:
:~> /usr/bin/firefox -remote 'openURL(%u,new-tab)' Error: No running window found ^^^^^^^^^^^^^^^^^^^^^
big _hint_ right above, accented. You do not have a session of firefox running OR... you are starting firefox from two different installs. open a second shell window, your choice xterm or konsole or ... start firefox from that window return to the first shell window and issue the 'remote' instruction and post your results. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
On Friday 29 October 2004 10:03 am, Patrick Shanahan wrote:
* Darrell Cormier <linuxdev@sptc.net> [10-29-04 09:50]:
I am assuming by "shell window" you mean something like xterm or konsole. <snip> mentioned in the previous post: :~> /usr/bin/firefox -remote 'openURL(%u,new-tab)'
Error: No running window found
^^^^^^^^^^^^^^^^^^^^^
big _hint_ right above, accented. You do not have a session of firefox running OR... you are starting firefox from two different installs.
open a second shell window, your choice xterm or konsole or ... start firefox from that window
return to the first shell window and issue the 'remote' instruction and post your results.
Same as earlier. Second Shell: :~>firefox First Shell: :~>firefox -remote 'openURL(%u,new-tab)' Error: No running window found Or First Shell: :~> firefox & [1] 8880 :~> firefox -remote 'openURL(%u,new-tab)' Error: No running window found Before trying each test above, ran ps -ef |grep irefox to insure that there were not open or <defunct> firfox processes. Just for grins and to test your theory of more than one installed versions: :~> rpm -qa |grep irefox MozillaFirefox-0.9.3-1.4 AND :~> locate irefox |grep bin /opt/MozillaFirefox/bin /opt/MozillaFirefox/bin/add-plugins.sh /opt/MozillaFirefox/bin/firefox.sh /opt/MozillaFirefox/bin/rebuild-databases.sh /opt/MozillaFirefox/lib/components/libinspector.so /opt/MozillaFirefox/lib/firefox-bin /opt/MozillaFirefox/lib/res/html/gopher-binary.gif /usr/bin/firefox Therefore, I used the specific path "/usr/bin/firefox" to perform the above tests and again got the same results. Could this be a bad install of Firefox? I don't think so because I get the same results on two different machines. Both running SuSE 9.1 Pro and MozillaFirefox-0.9.3-1.4 Thanks again, Darrell
On Friday 29 October 2004 11:43 am, Darrell Cormier wrote:
On Friday 29 October 2004 10:03 am, Patrick Shanahan wrote:
* Darrell Cormier <linuxdev@sptc.net> [10-29-04 09:50]:
I am assuming by "shell window" you mean something like xterm or konsole.
<snip>
mentioned in the previous post: :~> /usr/bin/firefox -remote 'openURL(%u,new-tab)'
Error: No running window found
^^^^^^^^^^^^^^^^^^^^^
big _hint_ right above, accented. You do not have a session of firefox running OR... you are starting firefox from two different installs.
open a second shell window, your choice xterm or konsole or ... start firefox from that window
return to the first shell window and issue the 'remote' instruction and post your results.
Same as earlier.
Second Shell: :~>firefox
First Shell: :~>firefox -remote 'openURL(%u,new-tab)'
Error: No running window found
Or
First Shell: :~> firefox &
[1] 8880
:~> firefox -remote 'openURL(%u,new-tab)'
Error: No running window found
Before trying each test above, ran ps -ef |grep irefox to insure that there were not open or <defunct> firfox processes.
Just for grins and to test your theory of more than one installed versions: :~> rpm -qa |grep irefox
MozillaFirefox-0.9.3-1.4
AND
:~> locate irefox |grep bin
/opt/MozillaFirefox/bin /opt/MozillaFirefox/bin/add-plugins.sh /opt/MozillaFirefox/bin/firefox.sh /opt/MozillaFirefox/bin/rebuild-databases.sh /opt/MozillaFirefox/lib/components/libinspector.so /opt/MozillaFirefox/lib/firefox-bin /opt/MozillaFirefox/lib/res/html/gopher-binary.gif /usr/bin/firefox
Therefore, I used the specific path "/usr/bin/firefox" to perform the above tests and again got the same results.
Could this be a bad install of Firefox? I don't think so because I get the same results on two different machines. Both running SuSE 9.1 Pro and MozillaFirefox-0.9.3-1.4
Thanks again, Darrell
One thing that catches my eye is that what is running may not be 'firefox' It could be firefox.bin or some other name.... Try: ps aux | grep -i fire and see what name firefox is running under. Then use the full patch for that when trying the -remote command. -- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 10/29/04 11:59 + +----------------------------------------------------------------------------+ "Rubber bands last longer when refrigerated."
On Friday 29 October 2004 11:00 am, Bruce Marshall wrote: <snip>
One thing that catches my eye is that what is running may not be 'firefox' It could be firefox.bin or some other name....
Try: ps aux | grep -i fire
and see what name firefox is running under. Then use the full patch for that when trying the -remote command.
-- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 10/29/04 11:59 + +----------------------------------------------------------------------------+ "Rubber bands last longer when refrigerated."
Thanks Bruce, But no luck there either. Here are the results: :~> ps aux |grep -i firefox gunner 9756 2.1 5.2 52768 27252 pts/13 S 11:06 0:02 /opt/MozillaFirefox/lib/firefox-bin gunner 9799 0.0 0.1 2596 720 pts/13 S+ 11:07 0:00 grep -i firefox :~> /opt/MozillaFirefox/lib/firefox-bin -remote 'openURL(http://www/mapquest.com,new-tab)' /opt/MozillaFirefox/lib/firefox-bin: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory Is this what you meant? Darrell C.
On Friday 29 October 2004 12:15 pm, Darrell Cormier wrote:
On Friday 29 October 2004 11:00 am, Bruce Marshall wrote:
Thanks Bruce,
But no luck there either. Here are the results: :~> ps aux |grep -i firefox
gunner 9756 2.1 5.2 52768 27252 pts/13 S 11:06 0:02 /opt/MozillaFirefox/lib/firefox-bin gunner 9799 0.0 0.1 2596 720 pts/13 S+ 11:07 0:00 grep -i firefox
:~> /opt/MozillaFirefox/lib/firefox-bin -remote : 'openURL(http://www/mapquest.com,new-tab)'
/opt/MozillaFirefox/lib/firefox-bin: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory
Is this what you meant?
Darrell C.
Try the following: /opt/MozillaFirefox/bin/firefox.sh -remote 'openURL(http://www/mapquest.com,new-tab)' (all one line)
On Friday 29 October 2004 11:57 am, Bruce Marshall wrote:
On Friday 29 October 2004 12:15 pm, Darrell Cormier wrote:
On Friday 29 October 2004 11:00 am, Bruce Marshall wrote:
Thanks Bruce,
But no luck there either. Here are the results: :~> ps aux |grep -i firefox
gunner 9756 2.1 5.2 52768 27252 pts/13 S 11:06 0:02 /opt/MozillaFirefox/lib/firefox-bin gunner 9799 0.0 0.1 2596 720 pts/13 S+ 11:07 0:00 grep -i firefox
:~> /opt/MozillaFirefox/lib/firefox-bin -remote : 'openURL(http://www/mapquest.com,new-tab)'
/opt/MozillaFirefox/lib/firefox-bin: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory
Is this what you meant?
Darrell C.
Try the following:
/opt/MozillaFirefox/bin/firefox.sh -remote 'openURL(http://www/mapquest.com,new-tab)'
(all one line)
Same results: :~> /opt/MozillaFirefox/bin/firefox.sh -remote 'openURL(http://www/mapquest.com,new-tab)' Error: No running window found
On Fri, Oct 29, 2004 at 12:05:17PM -0500, Darrell Cormier wrote:
:~> /opt/MozillaFirefox/bin/firefox.sh -remote 'openURL(http://www/mapquest.com,new-tab)' Error: No running window found
Could it be firefox version? According to this post http://www.google.com/search?q=cache:L5Mh74IAs20J:lists.freebsd.org/pipermail/freebsd-ports-bugs/2004-June/035590.html+%22Mozilla%22+%2B%22Error:+No+running+window+found%22&hl=en "Mozilla remote functions not working with Firefox (0.9_3 and _4) any more" I tried it on MozillaFirefox-0.9.3-1.4 on SUSE 9.1 and it does not work either: MOZ_DEBUG=1 firefox -remote "openURL(about:blank)" DEBUG: MOZ_APPNAME=firefox MOZ_PROFILE=.mozilla/firefox MOZILLA_FIVE_HOME=/opt/MozillaFirefox/lib LD_LIBRARY_PATH=/opt/MozillaFirefox/lib/plugins:/opt/MozillaFirefox/lib DISPLAY=:0.0 FONTCONFIG_PATH= MOZILLA_POSTSCRIPT_PRINTER_LIST=default lp using an already running Mozilla Error: No running window found Regards, -Kastus
On Friday 29 October 2004 12:27 pm, Kastus wrote:
On Fri, Oct 29, 2004 at 12:05:17PM -0500, Darrell Cormier wrote: <snip> Could it be firefox version? According to this post http://www.google.com/search?q=cache:L5Mh74IAs20J:lists.freebsd.org/piperma il/freebsd-ports-bugs/2004-June/035590.html+%22Mozilla%22+%2B%22Error:+No+ru nning+window+found%22&hl=en "Mozilla remote functions not working with Firefox (0.9_3 and _4) any more"
I tried it on MozillaFirefox-0.9.3-1.4 on SUSE 9.1 and it does not work either: <snip> Regards, -Kastus
Kastus, Thanks, sure enough it must have been something in that version. I just upgraded to MozillaFirefox-0.10.0-6.7 and everything works great. Thanks to everyone for their help and input. Darrell
On Fri, 29 Oct 2004, Darrell Cormier wrote:
On Friday 29 October 2004 12:27 pm, Kastus wrote:
On Fri, Oct 29, 2004 at 12:05:17PM -0500, Darrell Cormier wrote: <snip> Could it be firefox version? According to this post http://www.google.com/search?q=cache:L5Mh74IAs20J:lists.freebsd.org/piperma il/freebsd-ports-bugs/2004-June/035590.html+%22Mozilla%22+%2B%22Error:+No+ru nning+window+found%22&hl=en "Mozilla remote functions not working with Firefox (0.9_3 and _4) any more"
I tried it on MozillaFirefox-0.9.3-1.4 on SUSE 9.1 and it does not work either: <snip> Regards, -Kastus
Kastus, Thanks, sure enough it must have been something in that version. I just upgraded to MozillaFirefox-0.10.0-6.7 and everything works great.
Thanks to everyone for their help and input.
I'm sorry I didn't see this thread earlier. You can get around having to do ALL of the funky calls to get it to launch the way you want by loading the "Tabs Preferences" extention, where you can configure on-page/off-page/external links to open in same tab/new tab/new window. ------------------------------------------------------------------------- DDDD DK KD DKK D Dear FCC: Thanks, I already have a mother. DK KD DDDD
On Fri October 29 2004 10:03 am, Patrick Shanahan wrote:
* Darrell Cormier <linuxdev@sptc.net> [10-29-04 09:50]:
I am assuming by "shell window" you mean something like xterm or konsole.
xterm is a shell window as is konsole
In an xterm window I issued the following with the same results as
mentioned in the previous post: :~> /usr/bin/firefox -remote 'openURL(%u,new-tab)'
Error: No running window found
^^^^^^^^^^^^^^^^^^^^^
big _hint_ right above, accented. You do not have a session of firefox running OR... you are starting firefox from two different installs.
open a second shell window, your choice xterm or konsole or ... start firefox from that window
return to the first shell window and issue the 'remote' instruction and post your results.
-- Patrick
Right. The trick is to figure out what to change in /opt/MozillaFirefox/bin/firefox.sh to get it to either open a new window if one isn't already running OR open a new tab in Firefox if it is already running. And then make that a user configurable option via about:config or the Edit/Preferences within Firefox. I'm not a script guru yet but at first glance I believe that it is doable because to my untrained eye it looks like that start up script may already be trying to do that. Maybe not. Haven't figured it all out yet. That script is testing for a running instance of Firefox, mail, compose, etc and then doing something based on that. Where are my script gurus? Thanks in advance, Stan
Darrell, On Wednesday 27 October 2004 08:13, Darrell Cormier wrote:
I have just started using Firefox as my somewhat default browser in KDE. Is there a way to make Kmail open a new tab in Firefox instead of a new window when I click a link in an email.
TIA, Darrell
Here's how I accomplish it with Mozilla. I think the odds are good it will work with Firefox, as well. I assume you've dealt with the basic file association so that instead of Konqueror your HTTP URLs are being sent to Firefox. The refinement you need is this (or something like it): Command: /usr/local/bin/mozilla -remote "openURL(%u)" For me, using Mozilla 1.7.3, this opens the URL in whichever tab is currently displayed. I almost always have just one Mozilla window open with lots of tabs. I don't know what will happen if multiple Mozilla windows are open. Probably it will target the one that was most recently active. This page: <http://www.mozilla.org/docs/command-line-args.html> is a little easier to read the the "-help" command-line output. The details of the "-remote" option are given here: <http://www.mozilla.org/unix/remote.html>. Randall Schulz
On Wednesday 27 October 2004 8:13 am, Darrell Cormier wrote:
I have just started using Firefox as my somewhat default browser in KDE. Is there a way to make Kmail open a new tab in Firefox instead of a new window when I click a link in an email.
In your control center -> KDE components -> file associations -> text -> html: and move FireFox to the top of the list. Rich
TIA, Darrell
-- Rich Matson Reno, Nv. USA
participants (8)
-
Bruce Marshall
-
C. Richard Matson
-
Darrell Cormier
-
David Kramer
-
Kastus
-
Patrick Shanahan
-
Randall R Schulz
-
SRGlasoe