summaryrefslogtreecommitdiffstats
path: root/chrome/browser/shell_integration_linux.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 17:34:06 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 17:34:06 +0000
commitb00ea183194c6af56878bab4ebd443fe43f46280 (patch)
tree13d5b0e8ad61c34e778a7142791c0594b27223c9 /chrome/browser/shell_integration_linux.cc
parente1a96026a9403bfaa3c6efe120391261e5e795f4 (diff)
downloadchromium_src-b00ea183194c6af56878bab4ebd443fe43f46280.zip
chromium_src-b00ea183194c6af56878bab4ebd443fe43f46280.tar.gz
chromium_src-b00ea183194c6af56878bab4ebd443fe43f46280.tar.bz2
Fix creating desktop shortcuts for systems with empty or incomplete XDG_DATA_DIRS.
An example of such system is Fedora 11. BUG=22966 TEST=See bug. Review URL: http://codereview.chromium.org/267053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28834 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/shell_integration_linux.cc')
-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) {