Package: xdg-utils Version: 1.1.3-4.1 Apparently "xdg-mime query default" doesn't anchor the regexp properly when looking for MIME types: $ xdg-mime query default text/html firefox-esr.desktop $ xdg-mime query default xt/html firefox-esr.desktop -- Jakub Wilk