Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68683 - firefox+thunderbird can't open two mailto: links
Summary: firefox+thunderbird can't open two mailto: links
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-24 02:08 UTC by crusaderky
Modified: 2004-11-15 14:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description crusaderky 2004-10-24 02:08:43 UTC
I've got firefox-1.0_pre-r2 and thunderbird-0.8. I click on a <a href="mailto: ..."> link in firefox and it's opened correctly in thunderbird. I click it again without closing the previous window and I get the old "Select user profile" popup window. I select "default" and thunderbird says I can't select it because it's in use. (this is a veeeery old bug in the mozilla series).


$ emerge info
Portage 2.0.51-r2 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache digest distcc distlocks fixpackages sandbox userpriv"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X X509 aalib alsa apache2 apm avi berkdb bitmap-fonts bonobo cdparanoia cdr chroot crypt cscope cups curl dga directfb doc dv dvb dvd dvdr encode erandom esd extensions f77 faad fbcon flac flash foomaticdb gd gdbm ggi gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile ieee1394 imap imlib innodb ipv6 java jikes joystick jpeg kde kerberos krb4 lcms ldap libcaca libg++ libwww live lzo mad mcal md5sum memlimit mikmod mmx mng motif mozilla moznoirc mozp3p mozsvg mpeg mpimysql ncurses network nls nptl nvidia odbc offensive oggvorbis opengl pam parse-clocks pdflib perl pic png ppds prelude python qt quicktime readline rtc samba scanner sdl skey slang slp sndfile snmp socks5 speex spell sqlite sse ssl svga tcltk tcpd tetex tga theora tiff truetype usb v4l v4l2 vim-with-x wmf wxwindows x86 xchattext xml xml2 xmms xprint xv xvid yaz zlib linguas_it"
Comment 1 Stefano 2004-11-13 09:26:44 UTC
I should note that for me, with your same ebuilds + mozilla-launcher 1.22 (latest version) simply calling "thunderbird" works, so you may wish to check if updating mozilla-launcher fixes your problem. I had the same problem with earlier versions.

Anyway, if you need a workaround, you can fix it simply by following these instructions: create a shell script similar to this (credit given to the author in comment)

----------------

#!/bin/sh
#
#script author: asterix
#http://forums.mozillazine.org/viewtopic.php?p=136157#136157

export MOZILLA_FIVE_HOME=/usr/bin/thunderbird

if [ $(ps aux | grep thunderbird | wc -l) -gt 4 ]; then
# thunderbird is running
        $MOZILLA_FIVE_HOME/thunderbird -remote "mailto($1?subject=$2)"
else
# thunderbird is not running
        $MOZILLA_FIVE_HOME/thunderbird -P default -compose mailto:$1?subject=$2;fi

---------------------

Save it as thunderbird-mailto.sh somewhere in your path or in your home directory. Make the script executable (chmod +x /path/to/thunderbird-mailto.sh) and use it as an handler for mailto:
/path/to/thunderbird-mailto.sh %a %s
Comment 2 crusaderky 2004-11-13 09:33:09 UTC
I've update it and it's still broken.

mozilla-firefox-1.0
mozilla-launcher-1.22
mozilla-thunderbird-0.8
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-11-15 14:49:04 UTC
Works for me with

mozilla-thunderbird-0.9-r2
mozilla-firefox-1.0-r3
mozilla-launcher-1.22