No mailto in Firefox-1.0.6--No links in Thunderbird

Kevin Somervill ksomervi at brokenlogo.com
Thu Aug 18 20:54:08 PDT 2005


Hello,
So I hadn't even noticed this wasn't working until I read this thread, 
and so the adventure began.

Dan McGhee wrote:
> Dan McGhee wrote:
> 
>> Using DJ's /usr/bin/{thunderbird,firefox}, I can open URL's from 
>> Thunderbird into a new tab in firefox.  However, I haven't succeeded 
>> in getting 'mailto' to work yet.
> 
> 
> What I finally did was add a new user_pref to prefs.js using 
> 'about:config'.
> 

I tried the user_pref's route to no end.  The best I got was that when I 
clicked a link in an email, if firefox was already open, I would be 
prompted to create a new profile (which sucked).  So I in my googling I 
found a page that mentioned that the firefox script could be edited to 
open in a new tab (I think this is only needed if the window manager 
doesn't know about default browsers etc like xfce).  Working through the 
firefox script I found that it actually has a bug.  During an attempt to 
see if a browser is currently running, it doesn't correct set the 
location of the run_mozilla.sh script and so it always thinks it's 
starting a new session.  It then sees the profile in use and prompts to 
create a new one yada yada yada.  A patch to fix the firefox script is 
inline below, and I found that the thunder bird script has a similar 
issue.  If thunderbird is already open, and I clicked on a mailto link, 
the profile issue occurred.  Again this was due to incorrect location 
(set with $run_moz) of the run_mozilla.sh script.

<patch>

--- firefox.orig        2005-08-18 22:54:19.000000000 -0400
+++ firefox     2005-08-18 22:54:28.000000000 -0400
@@ -110,6 +110,7 @@
    # Check default compile-time libdir
    if [ -x "$moz_libdir/run-mozilla.sh" ]; then
      dist_bin="$moz_libdir"
+    run_moz="$dist_bin/run-mozilla.sh"
    else
      echo "Cannot find mozilla runtime directory. Exiting."
      exit 1
@@ -170,13 +171,14 @@

 
########################################################################### 
Main
  if [ $ALREADY_RUNNING -eq 1 ]; then
+
         # There's an instance already running. Use it.
         # Any command line args passed in?
         if [ $# -gt 0 ]; then
                 # There were "some" command line args.
                 if [ ${_USE_EXIST} -eq 1 ]; then
                         # We should use an existing instance, as 
_USE_EXIST=$_USE_EXIST=-1
-                       _remote_cmd="openURL(${_optLast})"
+                       _remote_cmd="openURL(${_optLast}, new-tab)"
                         "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a 
"${progbase}" "${_remote_cmd}"
                         unset _remote_cmd
                         exit $?

</patch>

The new-tab option could also be set to new-window.  I'm willing to be 
the mozilla folks already know about this, but I'll look through their 
buglists.

Hope this helps.  Along the way I finally got mplayerplugin built for 
firefox.  Wahoo!

./ks



More information about the blfs-support mailing list