Unverified Commit 9816ebb3 authored by Andrea Tarocchi's avatar Andrea Tarocchi
Browse files

fixed #166: xdg-open dose not search correctly in directories with spaces in the name

parent 0547886c
......@@ -307,7 +307,7 @@ search_desktop_file()
grep -l "$MIME;" "$dir/"*.desktop 2>/dev/null
for f in $dir/*/; do
for f in "$dir/"*/; do
[ -d "$f" ] && search_desktop_file "$MIME" "$f"
done
}
......
......@@ -328,7 +328,7 @@ search_desktop_file()
fi
fi
for d in $dir/*/; do
for d in "$dir/"*/; do
[ -d "$d" ] && search_desktop_file "$default" "$d" "$target"
done
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment