GNOME Bugzilla – Bug 734032
Clicking on .png file looks at wrong MIME type image/x-apple-ios-png
Last modified: 2015-05-30 15:15:26 UTC
When I click on any .png image in gnome commander, I always get this error: No default application found for the MIME type image/x-apple-ios-png. When clicking on .png MIME type of image/png should be used and not image/x-apple-ios-png I get this error on 1.2.x version (originally installed with Ubuntu 14.04 (same problem on 13.04 LTS)) and on new version 1.4.3 (manually installed in hope that this problem was already fixed.
This has been bugging me in Fedora 20 for the last year. There appears to be no way to manually correct it. (I went through the instructions on changing the defaults manually on the gnome-commander.org site and that does not work. Not being able to automatically load PNG files is obnoxious.
Hi, just to inform you: this is a known issue. Currently I'm out of time to solve this but it is still on my agenda. Best, Uwe
Hi, just to tell that I'm experiencing the same problem on Ubuntu 14.10 Best, Edgar
As a workaround by now please refer to the answer given here: http://askubuntu.com/questions/501177/14-04-mime-type-png Best Uwe
Created attachment 304081 [details] [review] Possible patch I don't know if this is still in wishlist, however if it is still so one of the easiest fix is to install own (gnome-commander specific, not seem by other application by default) mime xml file and add it to the search path. Patch is attached. On Fedora this is reproducible on F-20 (will be end-of-life in 1 month), F-21 (will be supported for 7 months). Note that F-22 does not reproduce this, because shared-mime-info 0.14 removed x-apple-ios-png entry (Fedora 20 uses 0.13) http://cgit.freedesktop.org/xdg/shared-mime-info/commit/?id=f8ed2998bffe481ab267d20dc2b641acbffbf021
The above is for gcmd-1-4 branch
Review of attachment 304081 [details] [review]: Thanks for this bugfix. I can confirm that it fixes the issue with the png-files using shared-mime-info < 1.4. One thing: In data/Makefile.am: for target in $(DESTDIR)/$(mimetopdir)/* ; \ test "x$${target}" != "x$(DESTDIR)/$(mimexmldir)" && rm -f $${target} ; done should be for target in $(DESTDIR)/$(mimetopdir)/* ; \ test "x$${target}" != "x$(DESTDIR)/$(mimexmldir)" && rm -rf $${target} ; done ^^^^ instead. Otherwise, "make distcheck" complains: ERROR: files left after uninstall: ./share/gnome-commander/mime/image/png.xml
Ah, actually on my system update-mime-database creates mime/image/png.xml. Thank you for review.
Created attachment 304308 [details] [review] Patch after review Patch take 2 Changed to rm -rf . Also, src/Makefile.am does not use HAVE_UPDATE_MIME_DATABASE (this is used in data/Makefile.am) so I deleted this line from src/Makefile.am.
Review of attachment 304308 [details] [review]: Great work, thank you!