Closed
Bug 257050
Opened 21 years ago
Closed 21 years ago
firefox wrapper script doesn't set LD_LIBRARY_PATH soon enough for mozilla-xremote-client, patch included
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: kbraunsc, Assigned: bugzilla)
Details
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7) Gecko/20040816 Firefox/0.9.3
Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7) Gecko/20040816 Firefox/0.9.3
When running the firefox script (from the bin directory) to launch firefox, I
get a "Killed" message when the script calls mozilla-xremote-client whether
firefox is currently already running or not. It seems to be because the script
doesn't set the LD_LIBRARY_PATH until after it does the check that calls
mozilla-xremote-client and so that app fails because it can't find the firefox
libs. The following patch shows what I changed in the script to set
LD_LIBRARY_PATH prior to calling mozilla-xremote-client. This results in firefox
launching without any seemingly extraneous (and somewhat disconcerting for end
users) message.
diff -u firefox firefox.orig
--- firefox Tue Aug 17 15:09:44 2004
+++ firefox.orig Mon Aug 16 12:50:09 2004
@@ -122,8 +122,6 @@
# The following is to check for a currently running instance.
# This is taken almost verbatim from the Mozilla RPM package's launch script.
MOZ_CLIENT_PROGRAM=$dist_bin/mozilla-xremote-client
-LD_LIBRARY_PATH=$moz_libdir
-export LD_LIBRARY_PATH
check_running() {
$MOZ_CLIENT_PROGRAM -a firefox 'ping()' 2>/dev/null >/dev/null
RETURN_VAL=$?
Though the browser worked regardless, we were hesitant to release it to our user
community with an odd "Killed" message that we'd just have to tell people to
ignore. This seems like a cleaner solution. It probably wouldn't occur for
people installing firefox in a default location, but I'm sure there are a lot of
organizations installing it somewhere non-standard like we do for larger
enviroments where it is mounted on several other systems.
KC Braunschweig
Enterprise Infrastructure Group
Information Services Division
University of Southern California
Reproducible: Always
Steps to Reproduce:
1.Run firefox from the command line: for us I use
/usr/usc/firefox/0.9.3/bin/firefox &
2.
3.
Actual Results:
A message "Killed" appears before the browser launches, regardless of whether an
instance of firefox is already running or not. Otherwise the browser functions
normally.
Expected Results:
Not returned what seems like an error message when nothing seems to be wrong.
This is a fairly standard build of firefox 0.9.3 on solaris 8 with gcc 3.3.2
using gtk2. It is installed in /usr/usc/firefox/0.9.3
Comment 1•21 years ago
|
||
Confirming this. However, I think we should set LD_LIBRARY_PATH=$dist_bin
instead of LD_LIBRARY_PATH=$moz_libdir. This way, it even works when started
from another directory.
This also applies to Thunderbird. Don't know about Sunbird (I'm not building it).
Can somebody please get this in?
Comment 2•21 years ago
|
||
As far as I can tell, this has already been fixed.
See http://lxr.mozilla.org/aviarybranch/source/browser/app/mozilla.in#124
Can you confirm that it now works with a recent nightly?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•21 years ago
|
||
Marking WFM per comment 2.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
| Reporter | ||
Comment 4•21 years ago
|
||
Looks to me like in version 1.0 mozilla-xremote-client is called from the
run-mozilla.sh script instead of from within the firefox script. This then
happens after the LD_LIBRARY_PATH has been set and fixes the problem.
KC
Comment 5•21 years ago
|
||
Sorry for the late reply, forgot to CC. Confirming this is fixed/worksforme too.
You need to log in
before you can comment on or make changes to this bug.
Description
•