Closed
Bug 2898
Opened 26 years ago
Closed 26 years ago
apprunner doesn't pass command line args to nsAppShell::Init
Categories
(Core Graveyard :: Viewer App, defect, P2)
Tracking
(Not tracked)
VERIFIED
INVALID
People
(Reporter: stuartp, Assigned: radha)
Details
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.
Re-assinged to radha@netscape.com.
Radha, is this an apprunner or mini-viewer bug?
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•26 years ago
|
||
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•26 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
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
nsAppShell::Init() should not need argv and argc arguments then...
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()
Status: REOPENED → RESOLVED
Closed: 26 years ago → 26 years ago
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•