diff options
Diffstat (limited to 'xpcom/io/SpecialSystemDirectory.cpp')
-rw-r--r-- | xpcom/io/SpecialSystemDirectory.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xpcom/io/SpecialSystemDirectory.cpp b/xpcom/io/SpecialSystemDirectory.cpp index 4b1055f3fe..419e783a31 100644 --- a/xpcom/io/SpecialSystemDirectory.cpp +++ b/xpcom/io/SpecialSystemDirectory.cpp @@ -94,7 +94,6 @@ static nsresult GetWindowsFolder(int aFolder, nsIFile** aFile) { return NS_NewLocalFile(nsDependentString(path, len), true, aFile); } -# if defined(MOZ_THUNDERBIRD) || defined(MOZ_SUITE) /* * Return the default save-to location for the Windows Library passed in * through aFolderId. @@ -122,7 +121,6 @@ static nsresult GetLibrarySaveToPath(int aFallbackFolderId, return GetWindowsFolder(aFallbackFolderId, aFile); } -# endif /** * Provides a fallback for getting the path to APPDATA or LOCALAPPDATA by @@ -527,6 +525,9 @@ nsresult GetSpecialSystemDirectory(SystemDirectories aSystemSystemDirectory, case Mac_UserDesktopDirectory: { return GetOSXFolderType(kUserDomain, kDesktopFolderType, aFile); } + case Mac_UserDocumentsDirectory: { + return GetOSXFolderType(kUserDomain, kDocumentsFolderType, aFile); + } case Mac_LocalApplicationsDirectory: { return GetOSXFolderType(kLocalDomain, kApplicationsFolderType, aFile); } @@ -674,12 +675,10 @@ nsresult GetSpecialSystemDirectory(SystemDirectories aSystemSystemDirectory, } return rv; } -# if defined(MOZ_THUNDERBIRD) || defined(MOZ_SUITE) case Win_Documents: { return GetLibrarySaveToPath(CSIDL_MYDOCUMENTS, FOLDERID_DocumentsLibrary, aFile); } -# endif #endif // XP_WIN #if defined(XP_UNIX) @@ -687,6 +686,7 @@ nsresult GetSpecialSystemDirectory(SystemDirectories aSystemSystemDirectory, return GetUnixHomeDir(aFile); case Unix_XDG_Desktop: + case Unix_XDG_Documents: case Unix_XDG_Download: return GetUnixXDGUserDirectory(aSystemSystemDirectory, aFile); |