Index: chrome/common/chrome_paths_linux.cc |
=================================================================== |
--- chrome/common/chrome_paths_linux.cc (revision 157679) |
+++ chrome/common/chrome_paths_linux.cc (working copy) |
@@ -37,8 +37,7 @@ |
FilePath home = file_util::GetHomeDir(); |
if (*result != home) { |
FilePath desktop; |
- if (!PathService::Get(base::DIR_USER_DESKTOP, &desktop)) |
- return false; |
+ GetUserDesktop(&desktop); |
if (*result != desktop) { |
return true; |
} |
@@ -143,6 +142,11 @@ |
return GetUserMediaDirectory("VIDEOS", kVideosDir, result); |
} |
+bool GetUserDesktop(FilePath* result) { |
+ *result = GetXDGUserDirectory("DESKTOP", "Desktop"); |
+ return true; |
+} |
+ |
bool ProcessNeedsProfileDir(const std::string& process_type) { |
// For now we have no reason to forbid this on Linux as we don't |
// have the roaming profile troubles there. Moreover the Linux breakpad needs |