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 firstname.lastname@example.org. 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
Last Resolved: 19 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
Last Resolved: 19 years ago → 19 years ago
let me re-mark this one as closed, filing another bug.
Marking Verified as Invalid.
You need to log in before you can comment on or make changes to this bug.