Hi, Chris, Thanks for the reply. But the profile_path() (I assumed you meant the gtk_moz_embed_set_profile_path()) can not solve my problem, because the mozilla's profile always has a "salted" name, like ha73czly.slt, I don't know how to get this name and how to generate one if it is not created yet.
I know how to use the nsIProfile/nsIProfileInternal interface to solve the problem, but I need to get those services after NS_InitEmbedding gets called and before the first WebBrowser window gets created. Is there any callback function for this stage? Thanks -Kyle Christopher Blizzard <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Kyle Yuan wrote: > > >Hi, > > > >I'm writing an application based on TestGtkEmbed. I found there is > >only one line in TestGtkEmbed.cpp to specify where its profile should > >be stored in: > > > > gtk_moz_embed_set_profile_path(full_path, "TestGtkEmbed"); > > > >Is it possible to use Mozilla's nsIProfile interface, such as > >nsIProfile::SetCurrentProfile, to let my app use the present profiles. > > > >Thanks > >Kyle > > > > > I'm not sure, I've never tried. But I imagine it will work as well as > it does in the browser. If you look at the source code that the > profile_path() call actually executes, it's not that complicated. > > --Chris
