summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/shell_integration_linux.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc
index 93aed21..fd5ca05 100644
--- a/chrome/browser/shell_integration_linux.cc
+++ b/chrome/browser/shell_integration_linux.cc
@@ -98,6 +98,11 @@ bool GetDesktopShortcutTemplate(std::string* output) {
}
}
+ // Add some fallback paths for systems which don't have XDG_DATA_DIRS or have
+ // it incomplete.
+ search_paths.push_back(FilePath("/usr/share/applications"));
+ search_paths.push_back(FilePath("/usr/local/share/applications"));
+
std::string template_filename(GetDesktopName());
for (std::vector<FilePath>::const_iterator i = search_paths.begin();
i != search_paths.end(); ++i) {