Srinivasa Raghavan wrote:
Hi all,

How to get the *profile startup* notification in xpcom ?

I tried to add an entry in category manager , but in vein.

my code look like below

*catman->AddCategoryEntry("profile-startup-category","nsQEngineImpl",NS_QENGINE_CONTRACTID,PR_TRUE,PR_TRUE,&previous);

*Please help me in this regard.

In what application? Seamonkey and the new-toolkit apps behave very differently regarding profile startup. The code you list should work fine in seamonkey, as long as nsQEngineImpl implements nsIProfileStartupListener.


In new-toolkit apps, you rarely need to watch for profile startup, but if you do, you can register as an app-startup listener and then observe the profile-after-change notification on the global observer service.

--BDS
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to