Closed Bug 294405 Opened 20 years ago Closed 20 years ago

First launch of application results in "usage" dialog being shown

Categories

(Toolkit Graveyard :: XULRunner, defect, P1)

x86
Windows XP
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8beta2

People

(Reporter: darin.moz, Assigned: darin.moz)

References

Details

Attachments

(1 file)

First launch of application results in "usage" dialog being shown, and the
application doesn't show.  I have to re-run the xulrunner command line to
actually show my application files.  This is reproducible using the 'simple'
application.
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla1.8beta2
This turns out to be a regression caused by the patch for bug 293461.  The
incrementing and decrementing of argv and argc respectively (in
nsXULRunnerApp.cpp) was causing the app restart logic to fail miserably.  I
removed that code, and everything works properly.  I think bsmedberg was trying
to avoid tickling the command line handling code, but my original solution for
that was to leverage the '--app' command line flag to encapsulate the
path-to-application.ini argument.  At any rate, the current code is just plain
broken :(
I suspect that this bug might lend some clues as to why we are seeing a major Ts
hit on beast.  It seems to me that startup without a profile should not require
a restart, yet as this bug exhibits, it now does.  I believe that the
tinderboxen usually start with a fresh profile, so they should be restarting as
well.
Attached patch v1 patchSplinter Review
This patch just restores the old code and adds a comment explaining in more
detail why the code is needed.
Attachment #183804 - Flags: first-review?(benjamin)
Comment on attachment 183804 [details] [diff] [review]
v1 patch

ok. We might want to use an envvar instead. But this won't explain the Ts jump
for Firefox.
Attachment #183804 - Flags: first-review?(benjamin) → first-review+
> ok. We might want to use an envvar instead.

Yeah, an envvar could be used.  I would still need to munge argv since the other
arguments specified on the command line would still need to be forwarded to
nsAppRunner.cpp.  I could probably just shift arguments down or something like
that.  Hrm..
fixed-on-trunk

i added a XXX comment about implementing this using an envvar.  i wanted to just
get the nightly builds working again.  i'll return with a better patch later.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
*** Bug 294436 has been marked as a duplicate of this bug. ***
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: