Otherwise we could end up matching with a weird ".../.desktop" entry. BUG: 427979 (cherry picked from commit a92ce693)