Re: [Evolution] sending urls to firefox
- From: Paul Hands <phands cadence com>
- To: arattan math uwaterloo ca
- Cc: evolution <evolution lists ximian com>
- Subject: Re: [Evolution] sending urls to firefox
- Date: Wed, 10 Mar 2004 09:25:38 +0000
Hi,
I've got firefox working by a small piece of indirection : I use a small script to invoke firefox, and I tell gconf to use that script. It's called moz_launcher, and it's on my path, so it's always found. I tell gconf to use :-
moz_launcher "%s"
Where %s is the URL passed by evolution. I thionk you may be having problems passing the "-remote" stuff, because, as far as I can tell, the %s part needs to be in "" to work. Mayne some Ximian or scri[pting expert can shed light on this?
The script is :-
#!/bin/bash
#Check an arg got passed
#for arg in "$@"
#do
# if [ "$arg" != "" ]; then
# echo "Got an arg :- $arg"
# fi
#done
#Try to launch a new window on an existing browser process.
#If it fails, return code will be non-zero, and we will need to start a new one.
/opt/firefox/firefox -remote "openurl($arg, new-window)"
#
#Now check the return code.
#If non zero, spawn a new mozilla process.
if [ $? -ne 0 ]; then
echo "No existing Firefox - start a new one on site $arg"
/opt/firefox/firefox $arg > /dev/null 2>&1 &
fi
The commented out section near the start is a trivial debug aid - if you uncomment it, and start evolution from an interactive shell, you can see what is being passed. It's by no means a good example of scripting! It doesn't do much that's clever; it uses absolute path names to where firefox is.....
But it works!
Regards,
Paul
On Wed, 2004-03-10 at 06:17, amarpreet rattan wrote:
hmmmm,
I am trying out firefox and i am having trouble sending urls to it from
evoltion.
what i am doing is changing the http handler in gconf. the code i am
using is
firefox -remote "openurl(%s,new-tab)"
and things like that. This sends SOMETHING to firefox, just not the
right one, so it is somewhat working. I know that i have tried
everything imaginable except the right one.
any hints?
amps
_______________________________________________
evolution maillist - evolution lists ximian com
http://lists.ximian.com/mailman/listinfo/evolution
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]