Chromium Code Reviews| Index: scripts/xdg-mime.in |
| =================================================================== |
| --- scripts/xdg-mime.in (revision 82218) |
| +++ scripts/xdg-mime.in (working copy) |
| @@ -245,6 +245,7 @@ |
| default_file="$xdg_user_dir/applications/mimeapps.list" |
| DEBUG 2 "make_default_generic $1 $2" |
| DEBUG 1 "Updating $default_file" |
| + [ -f $default_file ] || touch $default_file |
|
Lei Zhang
2011/05/04 23:11:55
$default_file should be in double quotes in case t
Mike Mammarella
2011/05/04 23:19:44
Good catch. I've updated the line I copied this fr
|
| awk -v mimetype="$2" -v application="$1" ' |
| BEGIN { |
| prefix=mimetype "=" |