I only got the javascript code handly, but the same principle should 
apply. Basically you get hold of nsIProfileInternal from profile manager 
then use the getProfileDir function. It will return nsIFile which you 
can then get the path from. Hope this help.

var profileComponent = 
Components.classes["@mozilla.org/profile/manager;1"].createInstance();

var profileInternal = 
profileComponent.QueryInterface(Components.interfaces.nsIProfileInternal);

var profileFile = 
profileInternal.getProfileDir(profileInternal.currentProfile);

Regards

-- 
Mike Lee
Website: http://www.exitspace.net/mike


Reply via email to