<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>52069</bug_id>
          
          <creation_ts>2004-05-26 00:44 0000</creation_ts>
          <short_desc>mozilla-launcher 1.9 can&apos;t load thunderbird anymore</short_desc>
          <delta_ts>2004-05-26 09:34:36 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>Florian.Dufour@inrialpes.fr</reporter>
          <assigned_to>mozilla@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>Florian.Dufour@inrialpes.fr</who>
            <bug_when>2004-05-26 00:44:03 0000</bug_when>
            <thetext>System : Gentoo Linux ~x86

I have thunderbird 0.6r1 installed, and mozilla-launcher 1.9, and I can&apos;t load thunderbird anymore (cf. steps below).

I found an explanation in the source of mozilla-launcher :

In which_browser() function, the first &quot;case&quot; find thunderbird, so it&apos;s ok, MOZILLA_FIVE_HOME is set to &quot;/usr/lib/MozillaThunderbird&quot;. However, the second &quot;case&quot; isn&apos;t skipped, so MOZILLA_FIVE_HOME is then set to &quot;/opt/thunderbird&quot;, which is bad, as I have the compiled Thunderbird, and not the binary one...

The second case sould be skipped if the first one finds the browser.

Reproducible: Always
Steps to Reproduce:
1. emerge net-mail/mozilla-thunderbird
2. emerge mozilla-launcher
3. thunderbird

Actual Results:  
/usr/bin/thunderbird: can&apos;t find the browser :-(

Expected Results:  
Thunderbird should run !</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>r.brown@lawson-his.co.uk</who>
            <bug_when>2004-05-26 02:22:51 0000</bug_when>
            <thetext>It&apos;s only a one line patch to mozilla-launcher to fix this. $zero is still thunderbird, as you have the compiled version installed, but the second case statement was running asn still matching thunderbird, instead of thunderbird-bin 

--- mozilla-launcher.old        2004-05-26 10:16:51.207447872 +0100
+++ mozilla-launcher    2004-05-26 10:17:10.622496336 +0100
@@ -153,7 +153,7 @@
       prefs=$HOME/.mozilla
       ;;
                                                                                
-    *thunderbird)
+    *thunderbird-bin)
       export MOZILLA_FIVE_HOME=&quot;/opt/thunderbird&quot;
       remote=$MOZILLA_FIVE_HOME/mozilla-xremote-client
       mozbin=$MOZILLA_FIVE_HOME/thunderbird-bin
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agriffis@gentoo.org</who>
            <bug_when>2004-05-26 09:34:36 0000</bug_when>
            <thetext>Thanks for the detailed analysis!  Fixed in mozilla-launcher-1.10</thetext>
          </long_desc>
      
    </bug>

</bugzilla>