Index: third_party/xdg-utils/scripts/xdg-settings |
=================================================================== |
--- third_party/xdg-utils/scripts/xdg-settings (revision 22205) |
+++ third_party/xdg-utils/scripts/xdg-settings (working copy) |
@@ -523,6 +523,8 @@ |
[ -r "$file" ] || continue |
# Check to make sure it's worth the processing |
grep -q "^Exec.*$base" "$file" || continue |
+ # Make sure it's a visible desktop file (e.g. not "preferred-web-browser.desktop") |
+ grep -q "^NoDisplay=true" "$file" && continue |
command="`grep "^Exec\(\[[^]=]*]\)\?=" "$file" | cut -d= -f 2- | first_word`" |
full="`which "$command"`" |
if [ x"$full" = x"$binary" ]; then |