diff options
author | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-10 22:33:40 +0000 |
---|---|---|
committer | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-10 22:33:40 +0000 |
commit | 5106ec3c2c0c031f1e46da4c3aa64af7e1fa65fc (patch) | |
tree | e69bf9a80132557f2acfb841942ff8f94d90c8de /chrome/tools | |
parent | 30f02c430674970ab19f1c0c06f1e1d201da4287 (diff) | |
download | chromium_src-5106ec3c2c0c031f1e46da4c3aa64af7e1fa65fc.zip chromium_src-5106ec3c2c0c031f1e46da4c3aa64af7e1fa65fc.tar.gz chromium_src-5106ec3c2c0c031f1e46da4c3aa64af7e1fa65fc.tar.bz2 |
Linux: create mimeapps.list in the wrapper script if it doesn't exist, to work around an xdg-mime bug.
BUG=70158
Review URL: http://codereview.chromium.org/6982013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84878 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools')
-rwxr-xr-x | chrome/tools/build/linux/chrome-wrapper | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/tools/build/linux/chrome-wrapper b/chrome/tools/build/linux/chrome-wrapper index 9bb4016..31025de 100755 --- a/chrome/tools/build/linux/chrome-wrapper +++ b/chrome/tools/build/linux/chrome-wrapper @@ -81,6 +81,12 @@ HERE="`dirname "$CHROME_WRAPPER"`" if ! which xdg-settings &> /dev/null; then # Old xdg utilities. Prepend $HERE to $PATH to use ours instead. export PATH="$HERE:$PATH" +else + # Use system xdg utilities. But first create mimeapps.list if it doesn't + # exist; some systems have bugs in xdg-mime that make it fail without it. + xdg_app_dir="${XDG_DATA_HOME:-$HOME/.local/share/applications}" + mkdir -p "$xdg_app_dir" + [ -f "$xdg_app_dir/mimeapps.list" ] || touch "$xdg_app_dir/mimeapps.list" fi # Always use our ffmpeg and other shared libs. |