apprunner doesn't pass command line args to nsAppShell::Init

VERIFIED INVALID

Status

P2
normal
VERIFIED INVALID
20 years ago
10 years ago

People

(Reporter: stuartp, Assigned: radha)

Tracking

Trunk
x86
Linux

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

20 years ago
the apprunner app doesn't pass command line arguments to nsAppShell::Init which
makes it hard to debug some GTK things as gtk will take certain command line
arguments and do things with them.  This problem should be appearing on all
platforms.

Updated

20 years ago
Assignee: don → radha

Comment 1

20 years ago
Re-assinged to radha@netscape.com.

Radha, is this an apprunner or mini-viewer bug?
Status: NEW → ASSIGNED
Command line arguments need not be passed to other modules/
It is a service. From anywhere in the
code, you can do the following to access the command line arguments,

  rv = nsServiceManager::GetService(kCmdLineServiceCID,
                                    kICmdLineServiceIID,
                                    (nsISupports **)&cmdLineArgs);
 // Get the value of -width option
  rv = cmdLineArgs->GetCmdLineValue("-width", &width);

Right now, interface GetCmdLine Value returns values only as char *. But it can
be extended to return other types of values. nsAppRunner.cpp has sample code for
using it. Let me know if there are still problems and I'll address it.

Comment 3

20 years ago
per leger, assigning QA contacts to all open bugs without QA contacts according
to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser

Updated

20 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 20 years ago
Resolution: --- → INVALID

Updated

20 years ago
Status: RESOLVED → VERIFIED

Comment 4

20 years ago
Marking Verified/Invalid.
(Reporter)

Comment 5

20 years ago
nsAppShell::Init() should not need argv and argc arguments then...
(Reporter)

Updated

20 years ago
Status: VERIFIED → REOPENED
(Reporter)

Comment 6

20 years ago
this isn't complete.  I need a way to get the entire argv and argc values.
also, someone should remove the argv and argc values passed to
nsIAppShell::Init()
(Reporter)

Updated

20 years ago
Status: REOPENED → RESOLVED
Last Resolved: 20 years ago20 years ago
(Reporter)

Comment 7

20 years ago
let me re-mark this one as closed, filing another bug.

Updated

20 years ago
Status: RESOLVED → VERIFIED
QA Contact: 3853

Comment 8

20 years ago
Marking Verified as Invalid.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.