mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 19:33:18 +00:00
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:
parent
2e606a5c9a
commit
a8e2853c4b
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user