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);
Example:
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
--- "Eric H. Jung" <[EMAIL PROTECTED]> 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
> [email protected]
> http://mozdev.org/mailman/listinfo/project_owners
>
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners