Problems with shared-mime-info lead kmimetypefinder to not recognizing some of hybrid iso images. Upstream should fix it in next release of shared-mime-info. Reproducible: Always Steps to Reproduce: 1. get usual and hybrid iso images 2. check their mime types via kmimetypefinder (kde-base/kmimetypefinder) or use Dolphin (kde-base/dolphin). Actual Results: 'application/x-cd-image' for usual iso images and 'text/plain' for most of hybrid iso images Expected Results: 'application/x-cd-image' for all iso images Additional bug reports links: https://bugs.kde.org/show_bug.cgi?id=346804 https://bugs.kde.org/show_bug.cgi?id=337035 For tests i've downloaded xubuntu-15.04-desktop-i386.iso from http://xubuntu.org/getxubuntu/. I guess using other images from that page would provide same results. I've also downloaded FreeBSD-10.1-RELEASE-i386-bootonly.iso from ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/i386/ISO-IMAGES/10.1/ I have also already had some other images, including Gentoo install and livedvd ones. Mime types are recognized more or less fine via "file --mime-type $filename" (application/x-iso9660-image), "mimetype $filename" (application/x-gamecube-rom), and "xdg-mime query filetype $filename" outside KDE session (it fallbacks on mimetype or file methods, while in KDE session it uses kmimetypefinder, which is affected) Test results for kmimetypefinder: $ for i in *.iso ; do echo -n -e "\n$i:\t" ; kmimetypefinder $i ; done FreeBSD-10.1-RELEASE-i386-bootonly.iso: application/x-cd-image (accuracy 20) FreeBSD-10.1-RELEASE-i386-disc1.iso: application/x-cd-image (accuracy 20) FreeBSD-9.3-RELEASE-i386-bootonly.iso: application/x-cd-image (accuracy 20) install-x86-minimal-20140930.iso: text/plain (accuracy 5) livedvd-x86-amd64-32ul-20140826.iso: application/x-cd-image (accuracy 20) xubuntu-14.04.1-desktop-i386.iso: text/plain (accuracy 5) xubuntu-15.04-desktop-i386.iso: text/plain (accuracy 5)
Created attachment 402712 [details, diff] iso.patch Patch from upstream fixing the issue. After patching shared-mime-info $ for i in *.iso ; do echo -n -e "\n$i:\t" ; kmimetypefinder $i ; done FreeBSD-10.1-RELEASE-i386-bootonly.iso: application/x-cd-image (accuracy 100) FreeBSD-10.1-RELEASE-i386-disc1.iso: application/x-cd-image (accuracy 100) FreeBSD-9.3-RELEASE-i386-bootonly.iso: application/x-cd-image (accuracy 100) install-x86-minimal-20140930.iso: application/x-cd-image (accuracy 100) livedvd-x86-amd64-32ul-20140826.iso: application/x-cd-image (accuracy 100) xubuntu-14.04.1-desktop-i386.iso: application/x-cd-image (accuracy 100) xubuntu-15.04-desktop-i386.iso: application/x-cd-image (accuracy 100)
Same problem here. Patch fixed it. Thank you.
Fixed, thanks for reporting! +*shared-mime-info-1.4-r1 (25 May 2015) + + 25 May 2015; Alexandre Rostovtsev <tetromino@gentoo.org> + +shared-mime-info-1.4-r1.ebuild, +files/shared-mime-info-1.4-iso-1.patch, + +files/shared-mime-info-1.4-iso-2.patch: + Add upstream patches to fix ISO image detection (bug #548676, thanks to + i.Dark_Templar). Add epatch_user.