[Project_owners] app-startup and xpcom-startup

Eric H. Jung grimholtz at yahoo.com
Fri May 19 14:49:47 EDT 2006

Answering my own question:

The comment about "app-startup" at
http://www.xulplanet.com/tutorials/mozsdk/observerserv.php is slightly
incorrect for services. addCategoryEntry() should look like this:

catman.addCategoryEntry("app-startup", someName, "service," +
  someContractId, true, true);


catman.addCategoryEntry("app-startup", "foxyproxy_catobserver", 
  "service," + "@leahscape.org/firefox/foxyproxy;1", true, true);

Yes, you must prepend "service," to the contract ID. Also, if you've
previously run your component using "xpcom-startup" but then change to
use "app-startup", you must delete compreg.dat and xpti.dat in the
profile directory for the change to be recognized.


--- "Eric H. Jung" <eric.jung at yahoo.com> wrote:

> Hi,
> I've run into other problems initializing my XPCOM JS component
> during
> "xpcom-startup", so I'm trying to switch to "app-startup". I followed
> the instructions here:
> http://www.xulplanet.com/tutorials/mozsdk/observerserv.php
> (User Contributed Notes)
> but I'm not getting any notification at app-startup at all. Does
> anyone
> know of an extension which uses this?
> Thanks,
> Eric
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners

More information about the Project_owners mailing list