Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90240 - mozilla-launcher: MOZILLA_FIVE_HOME for Firefox needs updating
Summary: mozilla-launcher: MOZILLA_FIVE_HOME for Firefox needs updating
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-24 06:39 UTC by Arun Raghavan (RETIRED)
Modified: 2005-05-31 20:30 UTC (History)
2 users (show)

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


Attachments
Patch to mozilla-launcher to correct MOZILLA_FIVE_HOME (firefox_pathfix.patch,456 bytes, patch)
2005-04-24 06:51 UTC, Arun Raghavan (RETIRED)
Details | Diff
updated patch to fix both ff and tb paths (firefox_thunderbird_pathfix.patch,756 bytes, patch)
2005-04-24 07:18 UTC, Arun Raghavan (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arun Raghavan (RETIRED) gentoo-dev 2005-04-24 06:39:18 UTC
With mozilla-firefox-bin 1.0.3, mozilla-launcher (1.32) throuws the following error (and doesn't load the default profile):

somebody@someserver ~ $ firefox
No running windows found
Warning: Couldn't extract MOZ_USER_DIR from /opt/firefox/firefox-bin

This happens because mozilla-launcher has MOZILLA_FIVE_HOME as /usr/lib/MozillaFirefox instead of (the new?) /opt/firefox.

Reproducible: Always
Steps to Reproduce:
1. Run /usr/bin/firefox
Actual Results:  
The following warning is generated, and the default firefox profile is not used
be used:

Warning: Couldn't extract MOZ_USER_DIR from /opt/firefox/firefox-bin

Expected Results:  
Start Firefox correctly using the default profile
Comment 1 Arun Raghavan (RETIRED) gentoo-dev 2005-04-24 06:51:28 UTC
Created attachment 57092 [details, diff]
Patch to mozilla-launcher to correct MOZILLA_FIVE_HOME

Don't know if this patch is any good for actual use, but it demonstrates the
fix for the problem
Comment 2 Arun Raghavan (RETIRED) gentoo-dev 2005-04-24 07:08:39 UTC
Correction - this doesn't fail to load the default profile for me ... that was caused by another error.
Comment 3 Arun Raghavan (RETIRED) gentoo-dev 2005-04-24 07:17:09 UTC
The thunderibrd path also needs to be updated
Comment 4 Arun Raghavan (RETIRED) gentoo-dev 2005-04-24 07:18:21 UTC
Created attachment 57096 [details, diff]
updated patch to fix both ff and tb paths

Again, not sure if this is in the right patch format, but hope it makes things
simpler
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2005-05-08 22:18:44 UTC
Please attach the output of

MOZILLA_LAUNCHER=firefox bash -x /usr/libexec/mozilla-launcher

What you're seeing shouldn't be happening.  When firefox is run from /opt/firefox then the path should be set correctly.

  # Attempt to use -bin version if source version isn't available
  if [[ -n $mozbin && ! -f $mozbin ]]; then
    unset mozbin        # it's bogus anyway
    zero=${zero}-bin
  fi

  case $zero in
    *fox-bin)
      export MOZILLA_FIVE_HOME="/opt/firefox"
      remote=$MOZILLA_FIVE_HOME/mozilla-xremote-client
      mozbin=$MOZILLA_FIVE_HOME/firefox-bin
      grepfor=Firefox-bin
      ;;
Comment 6 Arun Raghavan (RETIRED) gentoo-dev 2005-05-31 20:30:06 UTC
I cleaned up a whole bunch of things and this works fine now.

Thanks, Aron!