retitle 711031 "xdg-mime default" should warn on unknown typ[eo]s severity 711031 wishlist thanks
J. Eike von Seggern schrob:
> I changed the default application using xdg-mime. But xdg-open does not
> use this:
>
> % xdg-mime default ristretto.desktop images/png
^
The correct MIME type is image/png, without the plural "s". It should
work if you do it that way.
> % xdg-mime query default images/png
> ristretto.desktop
> % xdg-open images.png
> Opening "images.png" with Geeqie (image/png)
^^^^^^^^^
See here as well.
It would be nice if xdg-mime default had warned you about the
misspelling. It can't error out, because in principle images/png
could be a valid MIME type as well.
I'm adjusting the bug to a corresponding wishlist bug, please complain
again here if for for some reason it doesn't work with
"xdg-mime default ristretto.desktop image/png".
regards,
Jan
signature.asc
Description: Digital signature

