His original suggestion was actually probably the right one.. 
nsICmdLineService is the right one, but the interface might change in 
the future.. (such a change would break binary compatiblity, but as long 
as you're compiling everything yourself, you should be fine)

Greg Thokle wrote:

> Is there an API that I can use to determine what the chrome URL is from
> inside my XPCOM object.
> 
> For example if the application was launched as "mozilla -chrome
> chrome://test/content", how can I pick up the chrome://test/content piece
> from my XPCOM object?
> 
> NOTE:  I posted this message to the XPCOM group and Doug Turner suggested
> that I post it to this group.
> 
> Thanks,
> --
> Greg Thokle
> KaleidoScape, LLC
> 
> 
> 
> 


Reply via email to