xdg-utils as a first option, file is only used as a fallback. Based on a diff from giovanni (MAINTAINER)