#711031 "xdg-mime default" should warn on unknown typ[eo]s

Package:
xdg-utils
Source:
xdg-utils
Submitter:
"J. Eike von Seggern"
Date:
2026-06-26 17:25:01 UTC
Severity:
wishlist
Tags:
#711031#5
Date:
2013-06-04 07:09:30 UTC
From:
To:
Dear Maintainer,

I changed the default application using xdg-mime. But xdg-open does not
use this:

% xdg-mime default ristretto.desktop images/png
% xdg-mime query default images/png
ristretto.desktop
% xdg-open images.png
Opening "images.png" with Geeqie  (image/png)

However changing the default with `mimeopen -d` is working:

% mimeopen -d images.png
Please choose a default application for files of type image/png

	1) Geeqie  (geeqie)
	2) GNU Image Manipulation Program  (gimp)
	3) Ristretto Image Viewer  (ristretto)
	4) ImageMagick (display)  (display.im6)
	5) Iceweasel  (iceweasel)
	6) Feh  (feh)
	7) Other...

use application #3
Opening "images.png" with Ristretto Image Viewer  (image/png)
% xdg-open images.png
Opening "images.png" with Ristretto Image Viewer  (image/png)

I'm not running any desktop environment.

Regards
Eike

#711031#10
Date:
2015-04-23 15:48:20 UTC
From:
To:
retitle 711031 "xdg-mime default" should warn on unknown typ[eo]s
severity 711031 wishlist
thanks

J. Eike von Seggern schrob:
                                            ^
The correct MIME type is image/png, without the plural "s". It should
work if you do it that way.
                                     ^^^^^^^^^
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