Port Bug #246285 to the trunk so the semi-single profile landing doesn't break Mac builds by preventing

thunderbird from finding the profile on OS X.
This commit is contained in:
scott%scott-macgregor.org 2004-06-18 07:38:59 +00:00
parent 2e606a5c9a
commit a8e2853c4b

View File

@ -520,7 +520,11 @@ nsXREDirProvider::GetUserAppDataDirectory(nsILocalFile** aFile)
#if defined(XP_MACOSX)
FSRef fsRef;
#ifdef MOZ_THUNDERBIRD
OSErr err = ::FSFindFolder(kUserDomain, kDomainLibraryFolderType, kCreateFolder, &fsRef);
#else
OSErr err = ::FSFindFolder(kUserDomain, kApplicationSupportFolderType, kCreateFolder, &fsRef);
#endif
if (err) return NS_ERROR_FAILURE;
rv = NS_NewNativeLocalFile(EmptyCString(), PR_TRUE, getter_AddRefs(localDir));