Closed Bug 117087 Opened 24 years ago Closed 24 years ago

startup script doesn't work if you call it in inapropriate way

Categories

(SeaMonkey :: Build Config, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: dothebart, Assigned: netscape)

Details

you type '/usr/local/mozilla/run-mozilla.sh' and it says ./ bla not found. it may be fixed if you change the lines to MOZ_APPRUNNER_NAME="${MOZ_DIST_BIN}/mozilla-bin" MOZ_VIEWER_NAME="${MOZ_DIST_BIN}/viewer"
You should be running /usr/local/mozilla/mozilla, not run-mozilla.sh, if I recall correctly.
whats the script then for anyway? If it's there in the standard distribution, it should work in any case.
it's used to setup the environment. eg, ./run-mozilla.sh ./xpcshell, or ./run-mozilla.sh ./viewer or ./run- mozilla.sh ./mozilla-bin or ... or ./run-mozilla.sh `which ldd` ./mozilla-bin if we didn't distribute the file, then ./mozilla wouldn't work. should we rename the file ./.run-mozilla.sh so some clever sap would decide that it's an unimportant file and zap it and then complain when nothing worked.
Assignee: asa → seawood
Component: Browser-General → Build Config
QA Contact: doronr → granrose
I think that hiding the script at this point would cause more problems at this point than it would solve as people are routinely directed to run '/blah/run-mozilla.sh /blah/regxpcom' to fix registry problems. The script is not meant to be installed in a public directory and no distribution that I know of does so. Use the 'mozilla' script instead to start mozilla. Marking invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
does changing the script like I suggested break something? does /usr/local/mozilla/run-mozilla.sh regxpcom work? else what one should do s.th. like if test -n "$1"; then if there are '/'s do the strings like it's now else do add a a path to it if $1 doesn't exist fi else do the strings like I suggested. fi
verified invalid.
Status: RESOLVED → VERIFIED
I have successfully built Jan 07 2002 CVS on linux, but I am getting the same problems. What is the solution? It doesn't seem to have been made clear here. # ./mozilla /usr/bin/mozilla-cvs/dist/bin/run-mozilla.sh: line 72: 4546 Segmentation fault $prog ${1+"$@"} Line 72 of run-mozilla.sh has nothing at all in it.
Bug 118783 might be related to this.
Wilfried, I don't know if your proposed changes would break anything but I don't really have time to test it right now. Using the mozilla script is the proper way to launch the application in any case. sgtphou, the problem that you are seeing is not related to this bug report. Almost anytime that the program segfaults when run from a shell script, it will spit out the message that you saw. By itself, the message isn't helpful in tracking problems.
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.