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)

x86
Linux
defect

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.
Assignee: don → radha
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.
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
Status: RESOLVED → VERIFIED
Marking Verified/Invalid.
nsAppShell::Init() should not need argv and argc arguments then...
Status: VERIFIED → REOPENED
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 ago26 years ago
let me re-mark this one as closed, filing another bug.
Status: RESOLVED → VERIFIED
QA Contact: 3853
Marking Verified as Invalid.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.