Re: firefox .9 and evolution problem fixed

guenther <[email protected]>
Newsgroups gmane.comp.gnome.ximian.user
Message-ID <1087773725.18767.58.camel@delta>
On Fri, 2004-06-18 at 16:43 -0400, jack wallen wrote:
> took me about 2 days of digging to figure it out but i did.
> 
> in the gnome-default-applications-properties you have to enter the
> following for the custom web browser text area:
> firefox -a firefox -remote 'openURL(%s,new-tab)' %s
> 
> only problem is, no matter what url i click i wind up at this site:
> http://www.hoovers.com/free/
> 
> anyone have any idea why that would be?

Well, although any mentioned responses resulted in one or the other
error for me, they are a working solution if combined. :-)


Some notes first:

- As Marc Field mentioned, the command must not have the space after the
  comma. This is a bug in recent Mozilla and Firefox versions. See my
  post some weeks ago regarding this bug.

- 'mozilla-xremote-client' should be used, when re-using an already
  running instance (Marc Field suggested this as well). Seems, the
  firefox executable does not like -remote options, although the --help
  mentions it. *sigh*

- The script(s) I posted to this and other lists multiple times easily
  can be adjusted to reflect this strange circumstances (Steve Nelson
  mentioned my default reply).


Combining all the above results in this script, which works for me:

--- firefox.sh ---
#!/bin/sh
PATH=/data/firefox:$PATH
mozilla-xremote-client "openURL($1,new-tab)" || firefox $1 &
---

Set that script as default browserin "Gnome Control Center" > Preferred
Applications > Web Browser or simply running:
$ gnome-default-applications-properties

 check 'Custom Web Browser'
 Command: <path_to>/firefox.sh %s


Being forced to use different executables feels broken to me. Anyway,
the above script works for me, tested in a terminal.

This was just a quick hack, Firefox installed for testing purposes only,
so there might be a more elegant way. I am using Mozilla rather than
Firefox.

HTH

...guenther


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}

_______________________________________________
Users maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.